handle any exception when failing to snapshot
This commit is contained in:
parent
f9fb67616d
commit
8266315f51
|
@ -180,7 +180,7 @@ public class FsTranslog extends AbstractIndexShardComponent implements Translog
|
||||||
} else {
|
} else {
|
||||||
return new FsChannelSnapshot(shardId, this.id, raf, lastPosition, operationCounter.get(), operationCounter.get());
|
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);
|
throw new TranslogException(shardId, "Failed to snapshot", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue