-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix Flaky RemoteSplitIndexIT (#15107) #18329
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
Merged
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: Abhita Lakkabathini <[email protected]>
gbbafna
approved these changes
May 19, 2025
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18329 +/- ##
============================================
- Coverage 72.43% 72.41% -0.03%
+ Complexity 67306 67281 -25
============================================
Files 5488 5488
Lines 311069 311069
Branches 45217 45217
============================================
- Hits 225319 225251 -68
- Misses 67393 67397 +4
- Partials 18357 18421 +64 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
May 19, 2025
Signed-off-by: Abhita Lakkabathini <[email protected]> (cherry picked from commit 93d5356) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
gbbafna
pushed a commit
that referenced
this pull request
May 19, 2025
(cherry picked from commit 93d5356) Signed-off-by: Abhita Lakkabathini <[email protected]> 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>
This was referenced May 19, 2025
tandonks
pushed a commit
to tandonks/OpenSearch
that referenced
this pull request
Jun 1, 2025
…roject#18329) Signed-off-by: Abhita Lakkabathini <[email protected]>
neuenfeldttj
pushed a commit
to neuenfeldttj/OpenSearch
that referenced
this pull request
Jun 26, 2025
…roject#18329) Signed-off-by: Abhita Lakkabathini <[email protected]>Signed-off-by: TJ Neuenfeldt <[email protected]>
neuenfeldttj
pushed a commit
to neuenfeldttj/OpenSearch
that referenced
this pull request
Jun 26, 2025
…roject#18329) Signed-off-by: Abhita Lakkabathini <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
testCreateSplitIndexThe test creates split indices and tests whether:
Based on the failure logs from recent PR builds ([examples]
https://build.ci.opensearch.org/job/gradle-check/54304/testReport/junit/org.opensearch.action.admin.indices.create/RemoteSplitIndexIT/testCreateSplitIndex/
, we can see that the test used to fail occasionally with
java.lang.AssertionError: expected:<0> but was:<103>
at __randomizedtesting.SeedInfo.seed([93C08AFB8B2D718E:EB805C4187ADBB8C]:0)
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:647)
at org.junit.Assert.assertEquals(Assert.java:633)
at org.opensearch.action.admin.indices.create.RemoteSplitIndexIT.lambda$cleanUp$0(RemoteSplitIndexIT.java:117)
at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1182)
at org.opensearch.action.admin.indices.create.RemoteSplitIndexIT.cleanUp(RemoteSplitIndexIT.java:115)
The test fails at the cleanup part where few of the translog files are not deleted leading yet leading to mismatch in the expected count of translog.
Upon further investigating the logs, it looks like few of the translog files deletion fails with
access deniederrors.Taking initial assumption as some internal file locks not being released, we tried by lowering the await time and the test started failing more frequently.
As a fix we have increased the the timeout to 60 seconds.
Tested with the new timeout with ~2K+ consecutive IT runs without any failures
Related Issues
Resolves #[14296]
Check List
API changes companion pull request created, if applicable.Public documentation issue/PR created, if applicable.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.