hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-13369 Addendum deletes the table at the end of test
Date Tue, 31 Mar 2015 22:42:48 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 64941c615 -> 452ce33ef


HBASE-13369 Addendum deletes the table at the end of test


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/452ce33e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/452ce33e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/452ce33e

Branch: refs/heads/master
Commit: 452ce33ef5d76dbb28628fc48476a94320e4af8f
Parents: 64941c6
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Mar 31 15:42:38 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Mar 31 15:42:38 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/TestRegionServerMetrics.java   | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/452ce33e/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java
----------------------------------------------------------------------
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 d813575..5498d66 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);
+    }
   }
 }


Mime
View raw message