From e0d7e0eb3b14a873e710683a254c94185cb65ade Mon Sep 17 00:00:00 2001 From: Elliott Clark Date: Fri, 26 Feb 2016 09:04:18 -0800 Subject: [PATCH] HBASE-15348 Disable metrics tests until fixed. --- .../apache/hadoop/hbase/TestStochasticBalancerJmxMetrics.java | 2 ++ .../hadoop/hbase/regionserver/TestRegionServerMetrics.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestStochasticBalancerJmxMetrics.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestStochasticBalancerJmxMetrics.java index 49ec58e8526..a9afb7cb5cc 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestStochasticBalancerJmxMetrics.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestStochasticBalancerJmxMetrics.java @@ -49,12 +49,14 @@ import org.apache.hadoop.net.DNSToSwitchMapping; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.FixMethodOrder; +import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runners.MethodSorters; @Category({ MediumTests.class }) @FixMethodOrder(MethodSorters.NAME_ASCENDING) +@Ignore public class TestStochasticBalancerJmxMetrics extends BalancerTestBase { private static final Log LOG = LogFactory.getLog(TestStochasticBalancerJmxMetrics.class); private static HBaseTestingUtility UTIL = new HBaseTestingUtility(); diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java index ff0e4ae5f55..d5c786be864 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java @@ -28,6 +28,7 @@ import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.categories.Category; @@ -462,6 +463,7 @@ public class TestRegionServerMetrics { } @Test + @Ignore public void testRangeCountMetrics() throws Exception { String tableNameString = "testRangeCountMetrics"; final long[] timeranges = @@ -507,7 +509,7 @@ public class TestRegionServerMetrics { dynamicMetricName = timeRangeMetricName + "_" + timeRangeType + "_" + prior + "-" + timeranges[i]; if (metricsHelper.checkCounterExists(dynamicMetricName, serverSource)) { - long count = metricsHelper.getCounter(dynamicMetricName, serverSource); + long count = metricsHelper.getGaugeLong(dynamicMetricName, serverSource); if (count > 0) { timeRangeCountUpdated = true; break;