HBASE-20233 Remove redundant region server metric

Remove unused import
This commit is contained in:
Xu Cang 2018-04-13 15:56:32 -07:00 committed by Michael Stack
parent f5d970eba1
commit f154afa7cd
No known key found for this signature in database
GPG Key ID: 9816C7FC8ACC93D2
2 changed files with 0 additions and 3 deletions

View File

@ -48,7 +48,6 @@ public interface MetricsRegionAggregateSource extends BaseSource {
*/
String METRICS_JMX_CONTEXT = "RegionServer,sub=" + METRICS_NAME;
String NUM_REGIONS = "numRegions";
String NUMBER_OF_REGIONS_DESC = "Number of regions in the metrics system";
/**

View File

@ -27,7 +27,6 @@ import org.apache.yetus.audience.InterfaceAudience;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.hadoop.hbase.metrics.BaseSourceImpl;
import org.apache.hadoop.hbase.metrics.Interns;
import org.apache.hadoop.metrics2.MetricsCollector;
import org.apache.hadoop.metrics2.MetricsRecordBuilder;
import org.apache.hadoop.metrics2.impl.JmxCacheBuster;
@ -105,7 +104,6 @@ public class MetricsRegionAggregateSourceImpl extends BaseSourceImpl
((MetricsRegionSourceImpl) regionMetricSource).snapshot(mrb, all);
}
}
mrb.addGauge(Interns.info(NUM_REGIONS, NUMBER_OF_REGIONS_DESC), regionSources.size());
metricsRegistry.snapshot(mrb, all);
}
}