Technoboy- commented on code in PR #20595:
URL: https://github.com/apache/pulsar/pull/20595#discussion_r1243386813


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionHandler.java:
##########
@@ -41,10 +41,13 @@ public class ConnectionHandler {
     // Start with -1L because it gets incremented before sending on the first 
connection
     private volatile long epoch = -1L;
     protected volatile long lastConnectionClosedTimestamp = 0L;
+    private volatile CompletableFuture<Void> connectFuture;

Review Comment:
   Look `connectFuture` is for controlling the state of `grabCnx `, could it 
only use `boolean`?



-- 
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