diff --git a/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java b/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java index 70c593b590f5a..f7a78b10e671c 100644 --- a/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java +++ b/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java @@ -2850,7 +2850,9 @@ public synchronized void afterMerge(OnGoingMerge merge) { @Override public void onFailure(Exception e) { if (isClosed.get() == false) { - logger.warn("failed to flush after merge has finished"); + logger.warn("failed to flush after merge has finished", e); + } else { + logger.info("failed to flush after merge has finished during shard close"); } }