Skip to content

Commit

Permalink
Add log for unreferenced file cleanup (#11380)
Browse files Browse the repository at this point in the history
Signed-off-by: RS146BIJAY <rishavsagar4b1@gmail.com>
(cherry picked from commit 4f7b2a4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Nov 30, 2023
1 parent 934df47 commit 2ff4235
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,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 2ff4235

Please sign in to comment.