Commit f9060c5
Fix LocalTranslogTests handling of corrupted translog recovery (opensearch-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>1 parent 9f74249 commit f9060c5
File tree
1 file changed
+4
-4
lines changed- server/src/test/java/org/opensearch/index/translog
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3368 | 3368 | | |
3369 | 3369 | | |
3370 | 3370 | | |
3371 | | - | |
3372 | | - | |
| 3371 | + | |
| 3372 | + | |
3373 | 3373 | | |
3374 | 3374 | | |
3375 | 3375 | | |
| |||
3379 | 3379 | | |
3380 | 3380 | | |
3381 | 3381 | | |
3382 | | - | |
3383 | | - | |
| 3382 | + | |
| 3383 | + | |
3384 | 3384 | | |
3385 | 3385 | | |
3386 | 3386 | | |
| |||
0 commit comments