HBASE-20302 CatalogJanitor should log the reason why it is disabled (Vishal Khandelwal)

This commit is contained in:
Andrew Purtell 2018-03-29 10:20:34 -07:00
parent 773af3e0ca
commit 9a6b6524a7
1 changed files with 4 additions and 1 deletions

View File

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