HBASE-18309 (addendum) fix NPE in LogCleaner
This commit is contained in:
parent
979767824d
commit
988ea870ed
|
@ -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