diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/LogCleaner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/LogCleaner.java index 6e5424f52d2..db364eefc80 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/LogCleaner.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/LogCleaner.java @@ -177,6 +177,14 @@ public class LogCleaner extends CleanerChore { } } + @Override + public synchronized void cancel(boolean mayInterruptIfRunning) { + super.cancel(mayInterruptIfRunning); + for (Thread t : oldWALsCleaner) { + t.interrupt(); + } + } + private static final class CleanerContext { // At most waits 60 seconds static final long MAX_WAIT = 60 * 1000;