HBASE-6514 unknown metrics type: org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram (Elliot Clark)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1377210 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d107882d3
commit
933a38f9e9
|
@ -75,7 +75,8 @@ public class MetricsMBeanBase extends MetricsDynamicMBeanBase {
|
|||
private static MetricsRegistry copyMinusHBaseMetrics(final MetricsRegistry mr) {
|
||||
MetricsRegistry copy = new MetricsRegistry();
|
||||
for (MetricsBase metric : mr.getMetricsList()) {
|
||||
if (metric instanceof MetricsRate || metric instanceof MetricsString) {
|
||||
if (metric instanceof MetricsRate || metric instanceof MetricsString ||
|
||||
metric instanceof MetricsHistogram || metric instanceof ExactCounterMetric) {
|
||||
continue;
|
||||
}
|
||||
copy.add(metric.getName(), metric);
|
||||
|
|
Loading…
Reference in New Issue