Author: stack
Date: Thu Apr 4 03:05:04 2013
New Revision: 1464267
URL: http://svn.apache.org/r1464267
Log:
HBASE-8263 Master LogSplitting metrics update wrong counters
Modified:
hbase/branches/0.95/hbase-hadoop1-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
hbase/branches/0.95/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
Modified:
hbase/branches/0.95/hbase-hadoop1-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
URL:
http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-hadoop1-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java?rev=1464267&r1=1464266&r2=1464267&view=diff
==============================================================================
---
hbase/branches/0.95/hbase-hadoop1-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
(original)
+++
hbase/branches/0.95/hbase-hadoop1-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
Thu Apr 4 03:05:04 2013
@@ -65,8 +65,8 @@ public class MetricsMasterSourceImpl
ritGauge = metricsRegistry.newGauge(RIT_COUNT_NAME, "", 0l);
ritCountOverThresholdGauge =
metricsRegistry.newGauge(RIT_COUNT_OVER_THRESHOLD_NAME, "", 0l);
ritOldestAgeGauge = metricsRegistry.newGauge(RIT_OLDEST_AGE_NAME, "", 0l);
- splitTimeHisto = metricsRegistry.newHistogram(SPLIT_SIZE_NAME,
SPLIT_SIZE_DESC);
- splitSizeHisto = metricsRegistry.newHistogram(SPLIT_TIME_NAME,
SPLIT_TIME_DESC);
+ splitSizeHisto = metricsRegistry.newHistogram(SPLIT_SIZE_NAME,
SPLIT_SIZE_DESC);
+ splitTimeHisto = metricsRegistry.newHistogram(SPLIT_TIME_NAME,
SPLIT_TIME_DESC);
}
public void incRequests(final int inc) {
Modified:
hbase/branches/0.95/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
URL:
http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java?rev=1464267&r1=1464266&r2=1464267&view=diff
==============================================================================
---
hbase/branches/0.95/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
(original)
+++
hbase/branches/0.95/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterSourceImpl.java
Thu Apr 4 03:05:04 2013
@@ -67,8 +67,8 @@ public class MetricsMasterSourceImpl
ritGauge = metricsRegistry.newGauge(RIT_COUNT_NAME, "", 0l);
ritCountOverThresholdGauge =
metricsRegistry.newGauge(RIT_COUNT_OVER_THRESHOLD_NAME, "", 0l);
ritOldestAgeGauge = metricsRegistry.newGauge(RIT_OLDEST_AGE_NAME, "", 0l);
- splitTimeHisto = metricsRegistry.newHistogram(SPLIT_SIZE_NAME,
SPLIT_SIZE_DESC);
- splitSizeHisto = metricsRegistry.newHistogram(SPLIT_TIME_NAME,
SPLIT_TIME_DESC);
+ splitSizeHisto = metricsRegistry.newHistogram(SPLIT_SIZE_NAME,
SPLIT_SIZE_DESC);
+ splitTimeHisto = metricsRegistry.newHistogram(SPLIT_TIME_NAME,
SPLIT_TIME_DESC);
}
public void incRequests(final int inc) {