From 72b607bfa0c21b5fc11f892641dd171adc7a5bfb Mon Sep 17 00:00:00 2001 From: Ievgen Degtiarenko Date: Wed, 31 Jul 2024 09:08:16 +0200 Subject: [PATCH] Include a stack trace along with failure to flush warning (#111410) --- .../java/org/elasticsearch/index/engine/InternalEngine.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); } }