HBASE-13612 TestRegionFavoredNodes should guard against setup failure.
This commit is contained in:
parent
1c7389cbe2
commit
11bc89c3da
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue