-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Adding shards per node constraint for predictability to testClusterGr… #2110
Conversation
…eenAfterPartialRelocation Signed-off-by: Ankit Jain <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: Ankit Jain <[email protected]>
start gradle check |
start gradle check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful. I would add a comment in the test that describes what the test actually tries to test (your whiteboard example was really clear, so I would dump that info here).
server/src/test/java/org/opensearch/cluster/routing/MovePrimaryFirstTests.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/cluster/routing/MovePrimaryFirstTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ankit Jain <[email protected]>
start gradle check |
Unrelated error, restart gradle check |
start gradle check |
start gradle check |
start gradle check |
start gradle check |
#2110) * Adding shards per node constraint for predictability to testClusterGreenAfterPartialRelocation Signed-off-by: Ankit Jain <[email protected]> * Fixing precommit violation Signed-off-by: Ankit Jain <[email protected]> * Adding assertion to ensure invariant Signed-off-by: Ankit Jain <[email protected]> (cherry picked from commit 8ae0db5)
#2110) (#2265) * Adding shards per node constraint for predictability to testClusterGreenAfterPartialRelocation Signed-off-by: Ankit Jain <[email protected]> * Fixing precommit violation Signed-off-by: Ankit Jain <[email protected]> * Adding assertion to ensure invariant Signed-off-by: Ankit Jain <[email protected]> (cherry picked from commit 8ae0db5) Co-authored-by: Ankit Jain <[email protected]>
…eenAfterPartialRelocation
Signed-off-by: Ankit Jain [email protected]
Description
The test was failing due to some replica shards initializing and completing before last primary shard could finish initializing. Added shards per node constraint to prevent this from happening. The test has become really lightweight, completes in less than 5 seconds mostly and ran locally without any failure more than 500 times
Issues Resolved
#1957
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.