From 4f7b2a429128e856bf7e8943b1e4345f6a98b225 Mon Sep 17 00:00:00 2001 From: rishavz_sagar Date: Thu, 30 Nov 2023 13:07:10 +0530 Subject: [PATCH] Add log for unreferenced file cleanup (#11380) Signed-off-by: RS146BIJAY --- server/src/main/java/org/opensearch/index/engine/Engine.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/org/opensearch/index/engine/Engine.java b/server/src/main/java/org/opensearch/index/engine/Engine.java index dbc8a1aead65c..c945d082c9a35 100644 --- a/server/src/main/java/org/opensearch/index/engine/Engine.java +++ b/server/src/main/java/org/opensearch/index/engine/Engine.java @@ -1321,6 +1321,7 @@ public void failEngine(String reason, @Nullable Exception failure) { // clean all unreferenced files on best effort basis created during failed merge and reset the // shard state back to last Lucene Commit. if (shouldCleanupUnreferencedFiles() && isMergeFailureDueToIOException(failure, reason)) { + logger.info("Cleaning up unreferenced files as merge failed due to: {}", reason); cleanUpUnreferencedFiles(); }