Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ private DeleteOrphanFiles.Result doExecute() {
LOG.info("Custom delete function provided. Using non-bulk deletes");
deleteTasks.run(deleteFunc::accept);
}

if (deleteExecutorService != null) {
deleteExecutorService.shutdown();
}
}

return ImmutableDeleteOrphanFiles.Result.builder().orphanFileLocations(orphanFiles).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ private DeleteReachableFiles.Result deleteFiles(Iterator<FileInfo> files) {
}
}

if (deleteExecutorService != null) {
deleteExecutorService.shutdown();
}

LOG.info("Deleted {} total files", summary.totalFilesCount());

return ImmutableDeleteReachableFiles.Result.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ private ExpireSnapshots.Result deleteFiles(Iterator<FileInfo> files) {
}
}

if (deleteExecutorService != null) {
deleteExecutorService.shutdown();
}

LOG.info("Deleted {} total files", summary.totalFilesCount());

return ImmutableExpireSnapshots.Result.builder()
Expand Down