From 5a2ca43fa16a95d8db67e5a3d8b48e4d3f3a9aeb Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Sun, 3 May 2015 01:44:08 -0500 Subject: [PATCH] HBASE-13612 TestRegionFavoredNodes should guard against setup failure. --- .../hadoop/hbase/regionserver/TestRegionFavoredNodes.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ebce100d1f7..e924c4c9f6b 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; }