From 61e79ff6c96e37d2c03656e5505b79bb8044a258 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Sun, 22 Sep 2013 01:40:20 +0000 Subject: [PATCH] HBASE-9610 TestThriftServer.testAll failing; DEBUGGING git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1525310 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/thrift/TestThriftServer.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServer.java b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServer.java index 96d71776f49..1f7797406a8 100644 --- a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServer.java +++ b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServer.java @@ -160,9 +160,16 @@ public class TestThriftServer { * Tests if the metrics for thrift handler work correctly */ public void doTestThriftMetrics() throws Exception { + LOG.info("START doTestThriftMetrics"); Configuration conf = UTIL.getConfiguration(); ThriftMetrics metrics = getMetrics(conf); Hbase.Iface handler = getHandlerForMetricsTest(metrics, conf); + try { + metricsHelper.assertCounter("createTable_num_ops", 2, metrics.getSource()); + } catch (AssertionError e) { + // DEBUGGING + LOG.info("Got expected assertion error"); + } createTestTables(handler); dropTestTables(handler); metricsHelper.assertCounter("createTable_num_ops", 2, metrics.getSource());