-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix flaky WeightedRoutingIT #19032
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
Merged
andrross
merged 2 commits into
opensearch-project:main
from
guojialiang92:dev/fix-flaky-WeightedRoutingIT
Aug 12, 2025
Merged
fix flaky WeightedRoutingIT #19032
andrross
merged 2 commits into
opensearch-project:main
from
guojialiang92:dev/fix-flaky-WeightedRoutingIT
Aug 12, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19032 +/- ##
============================================
- Coverage 72.96% 72.87% -0.10%
+ Complexity 69451 69340 -111
============================================
Files 5645 5645
Lines 318787 318787
Branches 46125 46125
============================================
- Hits 232610 232314 -296
- Misses 67358 67697 +339
+ Partials 18819 18776 -43 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andrross
approved these changes
Aug 12, 2025
RajatGupta02
pushed a commit
to RajatGupta02/OpenSearch
that referenced
this pull request
Aug 18, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
atris
pushed a commit
to atris/OpenSearch
that referenced
this pull request
Aug 28, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
kh3ra
pushed a commit
to kh3ra/OpenSearch
that referenced
this pull request
Sep 5, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
vinaykpud
pushed a commit
to vinaykpud/OpenSearch
that referenced
this pull request
Sep 26, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
autocut
flaky-test
Random test failure that succeeds on second run
skip-changelog
>test-failure
Test failure from CI, local build, etc.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I reproduced this test locally. The exception information is as follows:
Reproduce
Running the following command will result in approximately
6failures out of every100times.Analysis
This is because it is necessary to wait for a period of time after performing
NetworkDisruption#startDisruptingandNetworkDisruption#stopDisruptingbefore they take effect.Using
Thread.sleepdoes not guarantee the effectiveness of the state.Solve
Use
assertBusyinstead ofThread.sleep.After the fix, running locally
100times did not encounter any issues again, and the average test runtime decreased from13sto3s.Related Issues
Resolves #19028
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.