Skip to content

Fix flaky RelocationIT#3226

Merged
Vikasht34 merged 1 commit intoopensearch-project:mainfrom
naveentatikonda:fix_relocationit
Mar 28, 2026
Merged

Fix flaky RelocationIT#3226
Vikasht34 merged 1 commit intoopensearch-project:mainfrom
naveentatikonda:fix_relocationit

Conversation

@naveentatikonda
Copy link
Copy Markdown
Member

@naveentatikonda naveentatikonda commented Mar 28, 2026

Description

Fix the flaky test blocking 3.6 build, which is failing the cat nodes check on a multinode cluster
https://build.ci.opensearch.org/blue/organizations/jenkins/integ-test/detail/integ-test/10988/pipeline/160/

 2> REPRODUCE WITH: ./gradlew ':integTestMultiNode' --tests 'org.opensearch.knn.index.RelocationIT.testForcemerge_whenRelocation_and_abortSuccess' -Dtests.seed=9AAAAB31B529BAB4 -Dtests.security.manager=false -Dtests.locale=ce-RU -Dtests.timezone=Europe/San_Marino -Druntime.java=25

  2> java.lang.AssertionError: expected:<2> but was:<1>

        at __randomizedtesting.SeedInfo.seed([9AAAAB31B529BAB4:643BA395DA31358A]: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.knn.index.RelocationIT.testForcemerge_whenRelocation_and_abortSuccess(RelocationIT.java:42)

  2> NOTE: leaving temporary files on disk at: /tmp/tmp43qwmnjw/k-NN/build/testrun/integTestMultiNode/temp/org.opensearch.knn.index.RelocationIT_9AAAAB31B529BAB4-001

  2> NOTE: test params are: codec=Asserting(Lucene104): {}, docValues:{}, maxPointsInLeafNode=421, maxMBSortInHeap=6.0114818495097335, sim=Asserting(RandomSimilarity(queryNorm=true): {}), locale=ce-RU, timezone=Europe/San_Marino

  2> NOTE: Linux 6.1.140-154.222.amzn2023.x86_64 amd64/Eclipse Adoptium 25 (64-bit)/cpus=4,threads=2,free=388609152,total=536870912

  2> NOTE: All tests run in this JVM: [RelocationIT]

1 test completed, 1 failed

=== Standard output of node `node{::integTestMultiNode-0}` ===

=== Standard error of node `node{::integTestMultiNode-0}` ===

=== Standard output of node `node{::integTestMultiNode-1}` ===

=== Standard error of node `node{::integTestMultiNode-1}` ===

FAILURE: Build failed with an exception.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.10%. Comparing base (dcac8ae) to head (b989e83).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3226      +/-   ##
============================================
- Coverage     83.11%   83.10%   -0.02%     
  Complexity     4210     4210              
============================================
  Files           453      453              
  Lines         15455    15455              
  Branches       1972     1972              
============================================
- Hits          12846    12844       -2     
- Misses         1814     1816       +2     
  Partials        795      795              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Vikasht34 Vikasht34 merged commit 683d0a3 into opensearch-project:main Mar 28, 2026
66 of 69 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 28, 2026
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
(cherry picked from commit 683d0a3)
naveentatikonda pushed a commit that referenced this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants