File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
main/java/org/elasticsearch/index/store
test/java/org/elasticsearch/index/shard Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ public SegmentInfos readLastCommittedSegmentsInfo() throws IOException {
185185 failIfCorrupted ();
186186 try {
187187 return readSegmentsInfo (null , directory ());
188- } catch (CorruptIndexException ex ) {
188+ } catch (CorruptIndexException | IndexFormatTooOldException | IndexFormatTooNewException ex ) {
189189 markStoreCorrupted (ex );
190190 throw ex ;
191191 }
Original file line number Diff line number Diff line change @@ -146,7 +146,6 @@ public void testShardLock() throws Exception {
146146 }
147147 }
148148
149- @ AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/33916" )
150149 public void testCorruptedIndex () throws Exception {
151150 final int numDocs = indexDocs (indexShard , true );
152151
@@ -179,10 +178,10 @@ public void testCorruptedIndex() throws Exception {
179178 } else {
180179 assertThat (e .getMessage (), containsString ("aborted by user" ));
181180 }
181+ } finally {
182+ logger .info ("--> output:\n {}" , t .getOutput ());
182183 }
183184
184- logger .info ("--> output:\n {}" , t .getOutput ());
185-
186185 if (corruptSegments == false ) {
187186
188187 // run command without dry-run
You can’t perform that action at this time.
0 commit comments