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