Skip to content

Commit

Permalink
Add log for unreferenced file cleanup (opensearch-project#11380)
Browse files Browse the repository at this point in the history
Signed-off-by: RS146BIJAY <rishavsagar4b1@gmail.com>
  • Loading branch information
RS146BIJAY committed Nov 30, 2023
1 parent 569a723 commit 4f7b2a4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 4f7b2a4

Please sign in to comment.