From 8266315f51c2393290172272444369893c7bf9f9 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 9 Nov 2010 15:34:17 +0200 Subject: [PATCH] handle any exception when failing to snapshot --- .../java/org/elasticsearch/index/translog/fs/FsTranslog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }