HBASE-9610 TestThriftServer.testAll failing; DEBUGGING

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1525310 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-09-22 01:40:20 +00:00
parent ee9eb6dbd3
commit 61e79ff6c9
1 changed files with 7 additions and 0 deletions

View File

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