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:
Toshihiro Suzuki 2019-12-04 21:24:03 +09:00 committed by GitHub
parent af2ac03e3a
commit 737eaa635a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}
}