From ed6930be95e85453870d7a5b6d8e2e4989b9ad15 Mon Sep 17 00:00:00 2001 From: RS146BIJAY Date: Wed, 29 Nov 2023 11:37:25 +0530 Subject: [PATCH] Adding log for unreferenced file cleanup 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(); }