hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject hbase git commit: HBASE-13612 TestRegionFavoredNodes should guard against setup failure.
Date Sun, 10 May 2015 03:37:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 8a16224f4 -> 858ebb90d


HBASE-13612 TestRegionFavoredNodes should guard against setup failure.


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

Branch: refs/heads/branch-1.0
Commit: 858ebb90d6b3a6b5f71ae1bfff3171f272bc65e4
Parents: 8a16224
Author: Sean Busbey <busbey@apache.org>
Authored: Sun May 3 01:44:08 2015 -0500
Committer: Sean Busbey <busbey@cloudera.com>
Committed: Sat May 9 22:31:30 2015 -0500

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/TestRegionFavoredNodes.java       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/858ebb90/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionFavoredNodes.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionFavoredNodes.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionFavoredNodes.java
index 08b3b99..82a17bb 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionFavoredNodes.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionFavoredNodes.java
@@ -78,7 +78,10 @@ public class TestRegionFavoredNodes {
 
   @AfterClass
   public static void tearDownAfterClass() throws Exception {
-    table.close();
+    // guard against failure in setup
+    if (table != null) {
+      table.close();
+    }
     if (createWithFavoredNode == null) {
       return;
     }


Mime
View raw message