diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java index 6174c3771d04..c6d18c425185 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java @@ -1008,7 +1008,7 @@ private void finishActiveMasterInitialization(MonitoredTask status) throws IOExc // initialize load balancer this.balancer.setMasterServices(this); this.balancer.initialize(); - this.balancer.updateClusterMetrics(getClusterMetricsInternal()); + this.balancer.updateClusterMetrics(getClusterMetricsWithoutCoprocessor()); // start up all service threads. status.setStatus("Initializing master service threads"); @@ -1096,7 +1096,7 @@ private void finishActiveMasterInitialization(MonitoredTask status) throws IOExc } // set cluster status again after user regions are assigned - this.balancer.updateClusterMetrics(getClusterMetricsInternal()); + this.balancer.updateClusterMetrics(getClusterMetricsWithoutCoprocessor()); // Start balancer and meta catalog janitor after meta and regions have been assigned. status.setStatus("Starting balancer and catalog janitor"); @@ -1918,7 +1918,7 @@ public BalanceResponse balance(BalanceRequest request) throws IOException { } //Give the balancer the current cluster state. - this.balancer.updateClusterMetrics(getClusterMetricsInternal()); + this.balancer.updateClusterMetrics(getClusterMetricsWithoutCoprocessor()); List plans = this.balancer.balanceCluster(assignments); @@ -2726,11 +2726,11 @@ public void checkTableModifiable(final TableName tableName) } } - public ClusterMetrics getClusterMetricsInternal() throws InterruptedIOException { - return getClusterMetricsInternal(EnumSet.allOf(Option.class)); + public ClusterMetrics getClusterMetricsWithoutCoprocessor() throws InterruptedIOException { + return getClusterMetricsWithoutCoprocessor(EnumSet.allOf(Option.class)); } - public ClusterMetrics getClusterMetricsInternal(EnumSet