HBASE-10580: IntegrationTestingUtility#restoreCluster leak resource when running in a mini cluster mode
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1570765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
65e7b7e2e1
commit
9a55412869
|
@ -98,7 +98,12 @@ public class IntegrationTestingUtility extends HBaseTestingUtility {
|
|||
if (isDistributedCluster()) {
|
||||
getHBaseClusterInterface().restoreInitialStatus();
|
||||
} else {
|
||||
getMiniHBaseCluster().shutdown();
|
||||
try {
|
||||
shutdownMiniCluster();
|
||||
} catch (Exception e) {
|
||||
// re-wrap into IOException
|
||||
throw new IOException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue