Commit 6631776e authored by Patrick D. Hunt's avatar Patrick D. Hunt
Browse files

ZOOKEEPER-1812. ZooInspector reconnection always fails if first connection...

ZOOKEEPER-1812. ZooInspector reconnection always fails if first connection fails (Benjamin Jaton via phunt)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/branches/branch-3.4@1540960 13f79535-47bb-0310-9956-ffa450edef68
parent ac7765b9
......@@ -155,6 +155,9 @@ BUGFIXES:
ZOOKEEPER-1798. Fix race condition in testNormalObserverRun
(thawan, fpj via thawan)
ZOOKEEPER-1812. ZooInspector reconnection always fails if first
connection fails (Benjamin Jaton via phunt)
IMPROVEMENTS:
ZOOKEEPER-1564. Allow JUnit test build with IBM Java
......
......@@ -173,12 +173,14 @@ public class ZooInspectorManagerImpl implements ZooInspectorManager {
}
((ZooKeeperRetry) this.zooKeeper).setRetryLimit(10);
connected = ((ZooKeeperRetry) this.zooKeeper).testConnection();
return connected;
}
} catch (Exception e) {
connected = false;
e.printStackTrace();
}
connected = false;
if (!connected){
disconnect();
}
return connected;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment