Skip to content

Fix ScaleIndexIT testFullSearchOnlyReplicasFullLifecycle flaky test #17848

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 1 commit into from
Apr 8, 2025

Conversation

prudhvigodithi
Copy link
Member

@prudhvigodithi prudhvigodithi commented Apr 8, 2025

Description

Fix ScaleIndexIT testFullSearchOnlyReplicasFullLifecycle flaky test. Seen failures in:

I was not able to re-produce the error, but looking at the code using ensureYellow is better that a manual YELLOW assert. The ensureYellow also has a timeout value, so the line internalCluster().stopRandomNode(InternalTestCluster.nameFilter(findNodesWithSearchOnlyReplicas()[0])); should stop the node, leave the search replica unassigned and show YELLOW status.

Related Issues

#16720 and part of #15306

Flaky Issue: #17929

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: Prudhvi Godithi <[email protected]>
@prudhvigodithi
Copy link
Member Author

Adding @andrross @mch2 to please take a look.
Thanks
@getsaurabh02 @peterzhuamazon

Copy link
Contributor

github-actions bot commented Apr 8, 2025

✅ Gradle check result for 282812a: SUCCESS

Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.42%. Comparing base (c91cdcb) to head (282812a).
Report is 13 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17848      +/-   ##
============================================
- Coverage     72.46%   72.42%   -0.04%     
+ Complexity    66502    66494       -8     
============================================
  Files          5408     5408              
  Lines        308080   308168      +88     
  Branches      44720    44745      +25     
============================================
- Hits         223239   223196      -43     
- Misses        66536    66738     +202     
+ Partials      18305    18234      -71     

☔ 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 andrross merged commit 427f37b into opensearch-project:main Apr 8, 2025
59 of 60 checks passed
@prudhvigodithi prudhvigodithi self-assigned this Apr 9, 2025
@prudhvigodithi prudhvigodithi moved this from Todo to Done in Performance Roadmap Apr 9, 2025
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
Signed-off-by: Prudhvi Godithi <[email protected]>
Signed-off-by: Harsh Kothari <[email protected]>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
Signed-off-by: Prudhvi Godithi <[email protected]>
Signed-off-by: Harsh Kothari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants