Skip to content

Conversation

@kkewwei
Copy link
Contributor

@kkewwei kkewwei commented Nov 23, 2025

Description

In IndexServiceTests.testBaseAsyncTaskWithFixedIntervalEnabledAndLongerRefresh and in zero state, we have a random sleep duration. It's created by the interval.nanos() and may be less than a millisecond.
302c645c97e290eeabf7ded35c3e0429

At the outer layer, we will verify whether the input is in milliseconds. If it is, an exception will be thrown.
67f50da578ad899df074b83fbd3fd900

This also applies to testBaseAsyncTaskWithFixedIntervalEnabled.

Related Issues

Resolves partial flaky tests in #14407

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.

…abledAndLongerRefresh

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
@github-actions github-actions bot added >test-failure Test failure from CI, local build, etc. autocut flaky-test Random test failure that succeeds on second run Indexing Indexing, Bulk Indexing and anything related to indexing labels Nov 23, 2025
@github-actions
Copy link
Contributor

✅ Gradle check result for 6f3de5e: SUCCESS

@codecov
Copy link

codecov bot commented Nov 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.33%. Comparing base (97d3864) to head (6f3de5e).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #20077      +/-   ##
============================================
- Coverage     73.33%   73.33%   -0.01%     
- Complexity    71679    71689      +10     
============================================
  Files          5790     5790              
  Lines        327549   327549              
  Branches      47181    47181              
============================================
- Hits         240217   240208       -9     
- Misses        68080    68096      +16     
+ Partials      19252    19245       -7     

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

@kkewwei
Copy link
Contributor Author

kkewwei commented Nov 26, 2025

@andrross Would you mind have a look in your spare time?

@kkewwei kkewwei merged commit 8bf2a18 into opensearch-project:main Nov 28, 2025
60 of 61 checks passed
kkewwei added a commit to kkewwei/OpenSearch that referenced this pull request Nov 28, 2025
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 Indexing Indexing, Bulk Indexing and anything related to indexing skip-changelog >test-failure Test failure from CI, local build, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants