Skip to content

Fix flaky test due to incorrect use of SSDV.nextOrd()#17626

Merged
andrross merged 1 commit intoopensearch-project:mainfrom
rishabhmaurya:flaky-dvusage-lucene10
Mar 21, 2025
Merged

Fix flaky test due to incorrect use of SSDV.nextOrd()#17626
andrross merged 1 commit intoopensearch-project:mainfrom
rishabhmaurya:flaky-dvusage-lucene10

Conversation

@rishabhmaurya
Copy link
Copy Markdown
Contributor

@rishabhmaurya rishabhmaurya commented Mar 18, 2025

Description

Lucene 10 makes it illegal to call SortedSetDocValues#nextOrd() more than#docValueCount() times for the currently-positioned doc. This was causing flakiness in MultiOrdinalsTests as encountered in PR #17446 with failure https://build.ci.opensearch.org/job/gradle-check/54686/testReport/junit/org.opensearch.index.fielddata.ordinals/MultiOrdinalsTests/testRandomValues/

https://github.com/apache/lucene/blob/e7f9bc837e419672d9bfc829d01e643df667e9d4/lucene/core/src/java/org/apache/lucene/index/SortedSetDocValues.java#L36

We need to address this throughout the codebase thus created #17628

Related Issues

#17628

Check List

  • Functionality includes testing.
    - [ ] 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.

Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 4399fef: SUCCESS

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.78%. Comparing base (dcad6b8) to head (4399fef).
Report is 18 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17626      +/-   ##
============================================
+ Coverage     72.46%   72.78%   +0.31%     
- Complexity    65757    66077     +320     
============================================
  Files          5311     5311              
  Lines        305001   305001              
  Branches      44230    44230              
============================================
+ Hits         221022   221990     +968     
+ Misses        65932    65187     -745     
+ Partials      18047    17824     -223     

☔ 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.

@andrross
Copy link
Copy Markdown
Member

The copy-issue-labels workflow seems to be stuck? I'm going to close and re-open and see if that fixes things...

@andrross andrross closed this Mar 20, 2025
@andrross andrross reopened this Mar 20, 2025
@github-actions
Copy link
Copy Markdown
Contributor

❕ Gradle check result for 4399fef: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.snapshots.DedicatedClusterSnapshotRestoreIT.testSnapshotWithStuckNode

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@andrross andrross merged commit 6d53f9d into opensearch-project:main Mar 21, 2025
99 of 100 checks passed
bzhangam pushed a commit to bzhangam/OpenSearch that referenced this pull request Mar 25, 2025
…ject#17626)

Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com>
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