HBASE-15211 Don't run the CatalogJanitor if there are regions in transition
This commit is contained in:
parent
2cf8af5bf1
commit
f5fba2ba0d
|
@ -96,7 +96,11 @@ public class CatalogJanitor extends ScheduledChore {
|
|||
@Override
|
||||
protected void chore() {
|
||||
try {
|
||||
if (this.enabled.get()) {
|
||||
AssignmentManager am = this.services.getAssignmentManager();
|
||||
if (this.enabled.get()
|
||||
&& am != null
|
||||
&& am.isFailoverCleanupDone()
|
||||
&& am.getRegionStates().getRegionsInTransition().size() == 0) {
|
||||
scan();
|
||||
} else {
|
||||
LOG.warn("CatalogJanitor disabled! Not running scan.");
|
||||
|
|
Loading…
Reference in New Issue