hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r992426 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Date Fri, 03 Sep 2010 19:20:10 GMT
Author: stack
Date: Fri Sep  3 19:20:09 2010
New Revision: 992426

URL: http://svn.apache.org/viewvc?rev=992426&view=rev
Log:
HBASE-2955 hbase-2692 broke replication -- committed HCM change by mistake

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

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java?rev=992426&r1=992425&r2=992426&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java Fri Sep
 3 19:20:09 2010
@@ -1289,10 +1289,6 @@ public class HConnectionManager {
           HBaseRPC.stopProxy(i);
         }
       }
-      if (zooKeeper != null) {
-        zooKeeper.close();
-        zooKeeper = null;
-      }
     }
 
     /**
@@ -1527,6 +1523,10 @@ public class HConnectionManager {
     public void abort(final String msg, Throwable t) {
       if (t != null) LOG.fatal(msg, t);
       else LOG.fatal(msg);
+      if(zooKeeper != null) {
+        zooKeeper.close();
+        zooKeeper = null;
+      }
     }
   }
 }



Mime
View raw message