From 61f921426875638af21620c4e4580d269b4b9f3e Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 3 Sep 2010 19:20:09 +0000 Subject: [PATCH] HBASE-2955 hbase-2692 broke replication -- committed HCM change by mistake git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@992426 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/hbase/client/HConnectionManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java b/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java index fb9b9ee81f8..4c703399f12 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java +++ b/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java @@ -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; + } } } }