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:
larsh 2012-08-25 04:41:12 +00:00
parent 9d107882d3
commit 933a38f9e9
1 changed files with 2 additions and 1 deletions

View File

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