Skip to content

Commit

Permalink
shutdown the closeWritersExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
neuyilan committed Oct 18, 2024
1 parent b34433a commit 899926a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ public void close() throws Exception {
CompletableFuture<Void> allTasksDone =
CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]));
allTasksDone.get();
ExecutorUtils.gracefulShutdown(1, TimeUnit.MINUTES, closeWritersExecutor);
if (closeWritersExecutor != null) {
closeWritersExecutor.shutdownNow();
}

writers.clear();
if (lazyCompactExecutor != null && closeCompactExecutorWhenLeaving) {
Expand Down

0 comments on commit 899926a

Please sign in to comment.