HBASE-20302 CatalogJanitor should log the reason why it is disabled (Vishal Khandelwal)
This commit is contained in:
parent
773af3e0ca
commit
9a6b6524a7
|
@ -117,7 +117,10 @@ public class CatalogJanitor extends ScheduledChore {
|
|||
&& am.getRegionStates().getRegionsInTransition().size() == 0) {
|
||||
scan();
|
||||
} else {
|
||||
LOG.warn("CatalogJanitor disabled! Not running scan.");
|
||||
LOG.warn("CatalogJanitor is disabled! Enabled=" + this.enabled.get() +
|
||||
", maintenanceMode=" + this.services.isInMaintenanceMode() +
|
||||
", am=" + am + ", failoverCleanupDone=" + (am != null && am.isFailoverCleanupDone()) +
|
||||
", hasRIT=" + (am != null && am.getRegionStates().getRegionsInTransition().size() == 0));
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Failed scan of catalog table", e);
|
||||
|
|
Loading…
Reference in New Issue