From 8f6e75b158724eee9b08313c072adcbb1579ffd3 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 4 Aug 2015 15:43:17 +0200 Subject: [PATCH] Ignore EngineClosedException on IndexShard#sync This method syncs the translog unless it's already synced. If the engine is alreayd closed we are guaranteed to be synced already such that we can just ignore this exception. Closes #12603 --- .../elasticsearch/action/index/TransportIndexAction.java | 7 +------ .../java/org/elasticsearch/index/shard/IndexShard.java | 4 +++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/action/index/TransportIndexAction.java b/core/src/main/java/org/elasticsearch/action/index/TransportIndexAction.java index b1371e18a32..97620829f3a 100644 --- a/core/src/main/java/org/elasticsearch/action/index/TransportIndexAction.java +++ b/core/src/main/java/org/elasticsearch/action/index/TransportIndexAction.java @@ -211,12 +211,7 @@ public class TransportIndexAction extends TransportReplicationAction