Skip to content

Commit

Permalink
[FLINK-36714][state] Ignore interrupted in sstmerge.CompactionSchedul…
Browse files Browse the repository at this point in the history
…er#stop
  • Loading branch information
rkhachatryan authored and pnowojski committed Nov 20, 2024
1 parent 27569da commit b48ccce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.concurrent.TimeUnit;

import static java.util.Collections.emptyList;
import static org.apache.flink.shaded.guava32.com.google.common.util.concurrent.Uninterruptibles.awaitTerminationUninterruptibly;

/**
* Schedules manual compactions of small disjoint SST files created by RocksDB. It does so
Expand Down Expand Up @@ -88,7 +89,7 @@ public void stop() throws InterruptedException {
scheduledExecutor.shutdownNow();
}
}
if (!scheduledExecutor.awaitTermination(5, TimeUnit.SECONDS)) {
if (!awaitTerminationUninterruptibly(scheduledExecutor, 5, TimeUnit.SECONDS)) {
LOG.warn("Unable to terminate scheduled tasks in 5s");
}
}
Expand Down

0 comments on commit b48ccce

Please sign in to comment.