HBASE-19822 Override cancel(boolean) in LogCleaner (Addendum)
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
c01dc69123
commit
3131234ffd
|
@ -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