hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffr...@apache.org
Subject svn commit: r1524627 - /hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Date Thu, 19 Sep 2013 06:17:20 GMT
Author: jeffreyz
Date: Thu Sep 19 06:17:20 2013
New Revision: 1524627

URL: http://svn.apache.org/r1524627
Log:
HBASE-9581: Few tests broken since HBASE-9551

Modified:
    hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java

Modified: hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=1524627&r1=1524626&r2=1524627&view=diff
==============================================================================
--- hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
(original)
+++ hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Thu Sep 19 06:17:20 2013
@@ -159,6 +159,7 @@ public class HBaseAdmin implements Abort
   private final int retryLongerMultiplier;
   private boolean aborted;
   private boolean cleanupConnectionOnClose = false; // close the connection in close()
+  private boolean closed = false;
 
   private RpcRetryingCallerFactory rpcCallerFactory;
 
@@ -2378,9 +2379,9 @@ public class HBaseAdmin implements Abort
 
   @Override
   public synchronized void close() throws IOException {
-    if (cleanupConnectionOnClose && this.connection != null) {
+    if (cleanupConnectionOnClose && this.connection != null && !this.closed)
{
       this.connection.close();
-      this.connection = null;
+      this.closed = true;
     }
   }
 



Mime
View raw message