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:
jeffreyz 2014-02-22 00:34:31 +00:00
parent 65e7b7e2e1
commit 9a55412869
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}
}
}