Skip to content

Conversation

@atris
Copy link
Contributor

@atris atris commented Aug 28, 2025

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Fixes #19168

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.

  Partial writes can corrupt translog files during simulated failures.
  When recovering these files, TranslogCorruptedException is thrown but
  wasn't caught since it extends OpenSearchException, not TranslogException.

  Add TranslogCorruptedException to catch blocks alongside other expected
  exceptions during translog recovery attempts.

  Fixes opensearch-project#19168

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
@github-actions github-actions bot added the flaky-test Random test failure that succeeds on second run label Aug 28, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for 7ce48ec: 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?

@github-actions
Copy link
Contributor

❌ Gradle check result for 7ce48ec: 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?

@github-actions
Copy link
Contributor

✅ Gradle check result for 9619631: SUCCESS

@codecov
Copy link

codecov bot commented Aug 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.89%. Comparing base (2eb9b53) to head (9619631).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19177      +/-   ##
============================================
+ Coverage     72.87%   72.89%   +0.01%     
- Complexity    69645    69709      +64     
============================================
  Files          5656     5656              
  Lines        319999   319999              
  Branches      46335    46335              
============================================
+ Hits         233191   233248      +57     
- Misses        67907    67932      +25     
+ Partials      18901    18819      -82     

☔ 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 3f86407 into opensearch-project:main Aug 29, 2025
31 checks passed
pranikum pushed a commit to pranikum/OpenSearch that referenced this pull request Sep 4, 2025
…earch-project#19177)

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
kh3ra pushed a commit to kh3ra/OpenSearch that referenced this pull request Sep 5, 2025
…earch-project#19177)

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
…earch-project#19177)

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
…earch-project#19177)

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
Signed-off-by: Ankit Jain <jainankitk@apache.org>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
…earch-project#19177)

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
Signed-off-by: Ankit Jain <jainankitk@apache.org>
asimmahmood1 pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 23, 2025
…earch-project#19177)

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Sep 26, 2025
…earch-project#19177)

Partial writes can corrupt translog files during simulated failures.
When recovering these files, TranslogCorruptedException is thrown but
wasn't caught since it extends OpenSearchException, not TranslogException.

Add TranslogCorruptedException to catch blocks alongside other expected
exceptions during translog recovery attempts.

Signed-off-by: Atri Sharma <atri.jiit@gmail.com>
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 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 LocalTranslogTests

2 participants