Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test for single node #1078

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

monusingh-1
Copy link
Collaborator

@monusingh-1 monusingh-1 commented Jul 18, 2023

Description

Skip test when single node clusters are used.
wait_for_active_shards setting will not allow the index to close as more than 1 shard will not be active.
This causes the test to fail.

{"acknowledged":false,"shards_acknowledged":false,"indices":{"remote-index":{"closed":false,"failedShards":{"0":{"failures":[{"shard":0,"index":"remote-index","status":"SERVICE_UNAVAILABLE","reason":{"type":"unavailable_shards_exception","reason":"[remote-index][0] Not enough active copies to meet shard count of [2] (have 1, needed 2). Timeout: [30s], request: [verify shard [remote-index][0] before close with block 4,RRq3_-4RRi2uSs03x15Odw,index preparing to close. Reopen the index to allow writes again or retry closing the index to fully close the index., blocks WRITE]"}}]}}}}}%

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: monusingh-1 <[email protected]>
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #1078 (9020ef4) into 2.9 (0e405ed) will increase coverage by 1.13%.
The diff coverage is n/a.

❗ Current head 9020ef4 differs from pull request most recent head a320adc. Consider uploading reports for the commit a320adc to get more accurate results

@@             Coverage Diff              @@
##                2.9    #1078      +/-   ##
============================================
+ Coverage     74.80%   75.93%   +1.13%     
- Complexity     1042     1058      +16     
============================================
  Files           141      141              
  Lines          4771     4771              
  Branches        546      546              
============================================
+ Hits           3569     3623      +54     
+ Misses          858      797      -61     
- Partials        344      351       +7     

see 24 files with indirect coverage changes

@monusingh-1 monusingh-1 marked this pull request as ready for review July 18, 2023 11:11
@@ -1221,6 +1221,12 @@ class StartReplicationIT: MultiClusterRestTestCase() {
}

fun `test that wait_for_active_shards setting is updated on follower through start replication api`() {

//Ignore this test if clusters dont have multiple nodes
if(!isMultiNodeClusterConfiguration){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will need to fix this, Can we create a backlog and attach to the method rather than skipping?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants