Skip to content

Commit 61f400e

Browse files
TESTS+DISTR.: Fix testIndexCheckOnStartup Flake (#33349) (#33355)
* Ignore all `RuntimeException` since random file corruption triggers other RTE in addition to the randomly caught one * closes #33345
1 parent 8f814c5 commit 61f400e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -2594,7 +2594,6 @@ public void testReadSnapshotConcurrently() throws IOException, InterruptedExcept
25942594
closeShards(newShard);
25952595
}
25962596

2597-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/33345")
25982597
public void testIndexCheckOnStartup() throws Exception {
25992598
final IndexShard indexShard = newStartedShard(true);
26002599

@@ -2648,7 +2647,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
26482647
try {
26492648
closeShards(corruptedShard);
26502649
} catch (RuntimeException e) {
2651-
assertThat(e.getMessage(), equalTo("CheckIndex failed"));
2650+
// Ignored because corrupted shard can throw various exceptions on close
26522651
}
26532652
}
26542653

0 commit comments

Comments
 (0)