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,10 +653,12 @@ public class CompactSplitThread implements CompactionRequestor, PropagatingConfi
|
|||||||
if (runnable instanceof CompactionRunner) {
|
if (runnable instanceof CompactionRunner) {
|
||||||
CompactionRunner runner = (CompactionRunner)runnable;
|
CompactionRunner runner = (CompactionRunner)runnable;
|
||||||
LOG.debug("Compaction Rejected: " + runner);
|
LOG.debug("Compaction Rejected: " + runner);
|
||||||
|
if (runner.compaction != null) {
|
||||||
runner.store.cancelRequestedCompaction(runner.compaction);
|
runner.store.cancelRequestedCompaction(runner.compaction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user