HBASE-18309 (addendum) fix NPE in LogCleaner
This commit is contained in:
parent
8fa08b56f3
commit
1ca2d10299
|
@ -163,7 +163,9 @@ public class LogCleaner extends CleanerChore<BaseLogCleanerDelegate> {
|
|||
LOG.warn("Failed to clean oldwals with exception: " + e);
|
||||
succeed = false;
|
||||
} finally {
|
||||
context.setResult(succeed);
|
||||
if (context != null) {
|
||||
context.setResult(succeed);
|
||||
}
|
||||
if (interrupted) {
|
||||
// Restore interrupt status
|
||||
Thread.currentThread().interrupt();
|
||||
|
|
Loading…
Reference in New Issue