HBASE-23359 RS going down with NPE when splitting a region with compaction disabled in branch-1 (#899)
Signed-off-by: Balazs Meszaros <meszibalu@apache.org> Signed-off-by Anoop Sam John <anoopsamjohn@apache.org>
This commit is contained in:
parent
af2ac03e3a
commit
737eaa635a
@ -653,7 +653,9 @@ public class CompactSplitThread implements CompactionRequestor, PropagatingConfi
|
||||
if (runnable instanceof CompactionRunner) {
|
||||
CompactionRunner runner = (CompactionRunner)runnable;
|
||||
LOG.debug("Compaction Rejected: " + runner);
|
||||
runner.store.cancelRequestedCompaction(runner.compaction);
|
||||
if (runner.compaction != null) {
|
||||
runner.store.cancelRequestedCompaction(runner.compaction);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user