HBASE-19822 Override cancel(boolean) in LogCleaner (Addendum)
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
fa66c7e28e
commit
298dc0c626
|
@ -177,6 +177,14 @@ public class LogCleaner extends CleanerChore<BaseLogCleanerDelegate> {
|
|||
}
|
||||
}
|
||||
|
||||
@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;
|
||||
|
|
Loading…
Reference in New Issue