-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 flaky test RecoveryFromGatewayIT.testMultipleReplicaShardAssignme… #14424
Fix flaky test RecoveryFromGatewayIT.testMultipleReplicaShardAssignme… #14424
Conversation
❌ Gradle check result for 796e5a8: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java
Show resolved
Hide resolved
796e5a8
to
bee6a29
Compare
❌ Gradle check result for bee6a29: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…ntWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode Signed-off-by: Swetha Guptha <[email protected]>
bee6a29
to
10e4489
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14424 +/- ##
============================================
+ Coverage 71.42% 71.63% +0.21%
- Complexity 59978 62052 +2074
============================================
Files 4985 5118 +133
Lines 282275 291833 +9558
Branches 40946 42180 +1234
============================================
+ Hits 201603 209069 +7466
- Misses 63999 65524 +1525
- Partials 16673 17240 +567 ☔ View full report in Codecov by Sentry. |
…ntWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode (#14424) Signed-off-by: Swetha Guptha <[email protected]> Co-authored-by: Swetha Guptha <[email protected]> (cherry picked from commit 802f2e6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ntWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode (#14424) (#14432) (cherry picked from commit 802f2e6) Signed-off-by: Swetha Guptha <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Swetha Guptha <[email protected]>
…ntWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode (opensearch-project#14424) Signed-off-by: Swetha Guptha <[email protected]> Co-authored-by: Swetha Guptha <[email protected]>
…ntWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode (opensearch-project#14424) Signed-off-by: Swetha Guptha <[email protected]> Co-authored-by: Swetha Guptha <[email protected]>
…ntWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode (opensearch-project#14424) (opensearch-project#14432) (cherry picked from commit 802f2e6) Signed-off-by: Swetha Guptha <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Swetha Guptha <[email protected]> Signed-off-by: kkewwei <[email protected]>
…ntWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode (opensearch-project#14424) Signed-off-by: Swetha Guptha <[email protected]> Co-authored-by: Swetha Guptha <[email protected]>
Description
This test case validates the shard allocation behavior for unassigned shards in batch mode with delayed shard assignment. The unassigned status of the shards should be ALLOCATION_DELAYED if any node leaves the cluster for the duration configured in setting EXISTING_SHARDS_ALLOCATOR_BATCH_MODE.
Flaky test error:
In the code block, the test case is currently flaky for two reasons:
https://github.com/opensearch-project/OpenSearch/blob/3a0c0c0b38c0b42bc519c3673d5cd4a1e3379550/server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java#L905-L924C9
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
#14304
Check List
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.