diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java index 0bd81673fb0..1c97166c9be 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java @@ -180,7 +180,7 @@ public class FsTranslog extends AbstractIndexShardComponent implements Translog } else { return new FsChannelSnapshot(shardId, this.id, raf, lastPosition, operationCounter.get(), operationCounter.get()); } - } catch (IOException e) { + } catch (Exception e) { throw new TranslogException(shardId, "Failed to snapshot", e); } }