-
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 flakiness for getNodeRoles based tests #7395
Conversation
@reta Can you please take a look at this one? |
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
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.
Thank you for fixing the test! 👍
Could you tell me why initializing a new Client will keep the sequence of node output consistent? |
Sure. OpenSearch/test/framework/src/main/java/org/opensearch/test/OpenSearchIntegTestCase.java Lines 650 to 663 in 4c98b3d
And since the API response is an array, different coordinator nodes will lead to a change in the sequence of returned results for node stats. |
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com> (cherry picked from commit b65047f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit b65047f) Signed-off-by: Kunal Kotwani <kkotwani@amazon.com> 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>
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
getNodeRoles
based testsclient()
randomizes the clients across nodes and can lead to a difference sequence of node outputs when checking for node rolesRelated Issues
Resolves #7327
Ran the tests with offending seeds and it seems to pass now.
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.