Skip to content

Commit 42424af

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

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
@@ -2596,7 +2596,6 @@ public void testReadSnapshotConcurrently() throws IOException, InterruptedExcept
25962596
closeShards(newShard);
25972597
}
25982598

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

@@ -2650,7 +2649,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
26502649
try {
26512650
closeShards(corruptedShard);
26522651
} catch (RuntimeException e) {
2653-
assertThat(e.getMessage(), equalTo("CheckIndex failed"));
2652+
// Ignored because corrupted shard can throw various exceptions on close
26542653
}
26552654
}
26562655

0 commit comments

Comments
 (0)