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 Sat, 09 May 2015 22:18:59 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 1c7389cbe -> 11bc89c3d


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/11bc89c3
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/11bc89c3
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/11bc89c3

Branch: refs/heads/branch-1
Commit: 11bc89c3daa7c4c2464affddeab15d925527e38a
Parents: 1c7389c
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 14:22:41 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/11bc89c3/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 e152f72..a56ec4f 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
@@ -77,7 +77,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