Skip to content

Fail fast if initial delete call fails in CreateIndexIT #18169

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

Conversation

andrross
Copy link
Member

Previously if the delete call failed then the test would block indefinitely on the latch as nothing would count it down. The test would then hit the overall timeout and report thread leak failures. This change captures the exception and fails immediately in the test thread if the delete call fails.

I'm not totally sure this is where the test is occasionally failing, but here is a case where the overall test timeout was reached: #14312 (comment)

Check List

  • Functionality includes testing.

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.

@andrross andrross requested a review from a team as a code owner April 30, 2025 20:26
Copy link
Contributor

❌ Gradle check result for bfd17e1: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for bfd17e1: SUCCESS

Copy link

codecov bot commented Apr 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.67%. Comparing base (00abaac) to head (4a7ffc8).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18169      +/-   ##
============================================
+ Coverage     72.58%   72.67%   +0.09%     
- Complexity    67219    67342     +123     
============================================
  Files          5476     5476              
  Lines        310445   310445              
  Branches      45121    45121              
============================================
+ Hits         225324   225630     +306     
+ Misses        66780    66424     -356     
- Partials      18341    18391      +50     

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

Previously if the delete call failed then the test would block
indefinitely on the latch as nothing would count it down. The test would
then hit the overall timeout and report thread leak failures. This
change captures the exception and fails immediately in the test thread
if the delete call fails.

Signed-off-by: Andrew Ross <[email protected]>
@andrross andrross force-pushed the create-index-it-delete-failure branch from bfd17e1 to 4a7ffc8 Compare May 1, 2025 18:18
@andrross andrross marked this pull request as ready for review May 1, 2025 18:19
Copy link
Contributor

github-actions bot commented May 1, 2025

❌ Gradle check result for 4a7ffc8: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

github-actions bot commented May 1, 2025

❌ Gradle check result for 4a7ffc8: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

github-actions bot commented May 1, 2025

✅ Gradle check result for 4a7ffc8: SUCCESS

@mch2 mch2 merged commit 84f6088 into opensearch-project:main May 1, 2025
32 checks passed
@andrross andrross deleted the create-index-it-delete-failure branch May 1, 2025 22:42
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.

3 participants