-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix race condition in IndexServiceTests #19281
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 race condition in IndexServiceTests #19281
Conversation
server/src/test/java/org/opensearch/index/IndexServiceTests.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 3443467: 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? |
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere. Signed-off-by: Andrew Ross <andrross@amazon.com>
3443467 to
076e30b
Compare
|
❌ Gradle check result for 076e30b: 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? |
|
❕ Gradle check result for 076e30b: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19281 +/- ##
============================================
- Coverage 72.89% 72.77% -0.12%
+ Complexity 69763 69681 -82
============================================
Files 5667 5667
Lines 320547 320547
Branches 46348 46348
============================================
- Hits 233648 233279 -369
- Misses 68005 68353 +348
- Partials 18894 18915 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere. Signed-off-by: Andrew Ross <andrross@amazon.com>
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere. Signed-off-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Ankit Jain <jainankitk@apache.org>
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere. Signed-off-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Ankit Jain <jainankitk@apache.org>
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere. Signed-off-by: Andrew Ross <andrross@amazon.com>
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere. Signed-off-by: Andrew Ross <andrross@amazon.com>
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere. Signed-off-by: Andrew Ross <andrross@amazon.com>
One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere.
Fixes #14407
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.