Shoothzj commented on code in PR #17856:
URL: https://github.com/apache/pulsar/pull/17856#discussion_r991851932


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java:
##########
@@ -803,6 +808,11 @@ public CompletableFuture<LookupDataResult> 
newLookup(ByteBuf request, long reque
                     waitingLookupRequests.size())));
             }
         }
+        future.whenComplete((lookupDataResult, throwable) -> {
+            if (throwable instanceof ConnectException) {

Review Comment:
   @codelipenghui The other case will be released in 
`getAndRemovePendingLookupRequest`. We only need to handle 
https://github.com/apache/pulsar/blob/252ededebe59d7974f821b8b87fc05859ecc6f22/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java#L293



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