Skip to content
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

[Flaky Test] Fix Flaky Test SearchWithRandomExceptionsIT.testRandomExceptions #16737

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

kkewwei
Copy link
Contributor

@kkewwei kkewwei commented Nov 28, 2024

Description

As the index refresh may fail, so the translog in the index will be not flushed, and TranslogWriter.buffer is not null, which causes arrays not been released, so we need to close the index to release the arrays.

Why TransportSearchFailuresIT.testFailedSearchWithWrongQuery is successfully is the refreshing index is successful.

Related Issues

Resolves #15828

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.

@kkewwei
Copy link
Contributor Author

kkewwei commented Nov 28, 2024

@reta, @jed326 please have a look when you are free.

Copy link
Contributor

✅ Gradle check result for 4c50d53: SUCCESS

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.14%. Comparing base (ad982c2) to head (4c50d53).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16737      +/-   ##
============================================
+ Coverage     72.00%   72.14%   +0.14%     
- Complexity    65159    65223      +64     
============================================
  Files          5318     5318              
  Lines        303983   303983              
  Branches      43986    43986              
============================================
+ Hits         218892   219322     +430     
+ Misses        67148    66711     -437     
- Partials      17943    17950       +7     

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

@reta reta merged commit b75f27a into opensearch-project:main Nov 29, 2024
65 of 69 checks passed
@reta reta added the backport 2.x Backport to 2.x branch label Nov 29, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 29, 2024
)

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
(cherry picked from commit b75f27a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reta pushed a commit that referenced this pull request Nov 29, 2024
) (#16746)

(cherry picked from commit b75f27a)

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@kkewwei kkewwei deleted the fix_15828 branch November 29, 2024 23:47
@kkewwei kkewwei restored the fix_15828 branch November 29, 2024 23:47
@kkewwei kkewwei deleted the fix_15828 branch November 29, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut backport 2.x Backport to 2.x branch flaky-test Random test failure that succeeds on second run skip-changelog >test-failure Test failure from CI, local build, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Gradle Check Flaky Test Report for SearchWithRandomExceptionsIT
2 participants