kezhuw commented on code in PR #511:
URL: https://github.com/apache/curator/pull/511#discussion_r1880364134


##########
curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java:
##########
@@ -399,6 +399,9 @@ void removeParentWatcher(Watcher watcher) {
     public void internalBlockUntilConnectedOrTimedOut() throws 
InterruptedException {
         long waitTimeMs = connectionTimeoutMs;
         while (!state.isConnected() && (waitTimeMs > 0)) {
+            if (!started.get()) {
+                throw new IllegalStateException("Client is not started");

Review Comment:
   +1 to this
   
   This should cover both "not started" and "closed".



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to