HBASE-14644 Region in transition metric is broken -- addendum (Huaxiang Sun)

This commit is contained in:
Matteo Bertozzi 2016-06-20 10:42:32 -07:00
parent 4377e16619
commit 6605f8f683

View File

@ -440,10 +440,6 @@ public class HMaster extends HRegionServer implements MasterServices, Server {
}
}
// Do Metrics periodically
periodicDoMetricsChore = new PeriodicDoMetrics(msgInterval, this);
getChoreService().scheduleChore(periodicDoMetricsChore);
// Some unit tests don't need a cluster, so no zookeeper at all
if (!conf.getBoolean("hbase.testing.nocluster", false)) {
activeMasterManager = new ActiveMasterManager(zooKeeper, this.serverName, this);
@ -800,6 +796,10 @@ public class HMaster extends HRegionServer implements MasterServices, Server {
this.catalogJanitorChore = new CatalogJanitor(this, this);
getChoreService().scheduleChore(catalogJanitorChore);
// Do Metrics periodically
periodicDoMetricsChore = new PeriodicDoMetrics(msgInterval, this);
getChoreService().scheduleChore(periodicDoMetricsChore);
status.setStatus("Starting namespace manager");
initNamespace();