hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffr...@apache.org
Subject svn commit: r1570774 - /hbase/branches/0.96/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java
Date Sat, 22 Feb 2014 00:56:12 GMT
Author: jeffreyz
Date: Sat Feb 22 00:56:11 2014
New Revision: 1570774

URL: http://svn.apache.org/r1570774
Log:
HBASE-10580: IntegrationTestingUtility#restoreCluster leak resource when running in a mini
cluster mode

Modified:
    hbase/branches/0.96/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java

Modified: hbase/branches/0.96/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java?rev=1570774&r1=1570773&r2=1570774&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java
(original)
+++ hbase/branches/0.96/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java
Sat Feb 22 00:56:11 2014
@@ -98,7 +98,12 @@ public class IntegrationTestingUtility e
     if (isDistributedCluster()) {
       getHBaseClusterInterface().restoreInitialStatus();
     } else {
-      getMiniHBaseCluster().shutdown();
+      try {
+        shutdownMiniCluster();
+      } catch (Exception e) {
+        // re-wrap into IOException
+        throw new IOException(e);
+      }
     }
   }
 



Mime
View raw message