-
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
[BUG] Fix flaky test org.opensearch.index.ShardIndexingPressureConcurrentExecutionTests.testReplicaThreadedUpdateToShardLimitsAndRejections #4212
Comments
This was added in #1336, @getsaurabh02 care to take a look pls? |
Looked into this test a bit. The test fails only when rejection count if full (this happens randomly) i.e rejection count is equal to NUM_THREADS. Two possible workaround/Questions: Updating IntegTest after line with below code, fixes the issue. But not sure if this is right way forward. @getsaurabh02 can you please give your thoughts on this.
|
Thanks for sharing the info @Rishikesh1159. I agree with the adding the optional null check as above, since the Here, if rejection count equals to the |
Thanks @getsaurabh02 for your detail explanation. What you said makes sense. I have put out a small PR to fix this behavior of test by adding the optional null check as we discussed. Can you please review the PR |
Describe the bug
New flaky test
org.opensearch.index.ShardIndexingPressureConcurrentExecutionTests.testReplicaThreadedUpdateToShardLimitsAndRejections
, spotted in [1][1] https://build.ci.opensearch.org/job/gradle-check/1711/testReport/junit/org.opensearch.index/ShardIndexingPressureConcurrentExecutionTests/testReplicaThreadedUpdateToShardLimitsAndRejections/
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Test should pass
Plugins
Standard
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
main
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: