HBASE-3223 Get VersionInfo for Running HBase Process

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1040273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-11-29 20:31:02 +00:00
parent 1649ad1174
commit 4b5dcb3b31
2 changed files with 3 additions and 1 deletions

View File

@ -1194,6 +1194,8 @@ Release 0.90.0 - Unreleased
HBASE-3273 Set the ZK default timeout to 3 minutes HBASE-3273 Set the ZK default timeout to 3 minutes
HBASE-3279 [rest] Filter for gzip content encoding that wraps both input HBASE-3279 [rest] Filter for gzip content encoding that wraps both input
and output side. and output side.
HBASE-3223 Get VersionInfo for Running HBase Process
(Nicolas Spiegelberg via Stack)
NEW FEATURES NEW FEATURES

View File

@ -71,7 +71,7 @@ public class MetricsMBeanBase extends MetricsDynamicMBeanBase {
private static MetricsRegistry copyMinusHBaseMetrics(final MetricsRegistry mr) { private static MetricsRegistry copyMinusHBaseMetrics(final MetricsRegistry mr) {
MetricsRegistry copy = new MetricsRegistry(); MetricsRegistry copy = new MetricsRegistry();
for (MetricsBase metric : mr.getMetricsList()) { for (MetricsBase metric : mr.getMetricsList()) {
if (metric instanceof org.apache.hadoop.hbase.metrics.MetricsRate) { if (metric instanceof MetricsRate || metric instanceof MetricsString) {
continue; continue;
} }
copy.add(metric.getName(), metric); copy.add(metric.getName(), metric);