Store: keep IndexFormatTooOldException and IndexFormatTooNewException in corruption marker
Closes
@@ -185,7 +185,7 @@ public class Store extends AbstractIndexShardComponent implements Closeable, Ref
failIfCorrupted();
try {
return readSegmentsInfo(null, directory());
- } catch (CorruptIndexException ex) {
+ } catch (CorruptIndexException | IndexFormatTooOldException | IndexFormatTooNewException ex) {
markStoreCorrupted(ex);
throw ex;
}
