From 452ce33ef5d76dbb28628fc48476a94320e4af8f Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 31 Mar 2015 15:42:38 -0700 Subject: [PATCH] HBASE-13369 Addendum deletes the table at the end of test --- .../hbase/regionserver/TestRegionServerMetrics.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 d8135758b74..5498d6697fc 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 @@ -367,6 +367,10 @@ public class TestRegionServerMetrics { } metricsHelper.assertCounter("ScanNext_num_ops", numScanNext, serverSource); } + try (Admin admin = TEST_UTIL.getHBaseAdmin()) { + admin.disableTable(tableName); + admin.deleteTable(tableName); + } } @Test @@ -413,5 +417,9 @@ public class TestRegionServerMetrics { } metricsHelper.assertCounter("ScanNext_num_ops", numScanNext, serverSource); } + try (Admin admin = TEST_UTIL.getHBaseAdmin()) { + admin.disableTable(tableName); + admin.deleteTable(tableName); + } } }