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);
|
LOG.warn("Failed to clean oldwals with exception: " + e);
|
||||||
succeed = false;
|
succeed = false;
|
||||||
} finally {
|
} finally {
|
||||||
context.setResult(succeed);
|
if (context != null) {
|
||||||
|
context.setResult(succeed);
|
||||||
|
}
|
||||||
if (interrupted) {
|
if (interrupted) {
|
||||||
// Restore interrupt status
|
// Restore interrupt status
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
|
|
Loading…
Reference in New Issue