poorbarcode commented on code in PR #20362:
URL: https://github.com/apache/pulsar/pull/20362#discussion_r1210011215


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java:
##########
@@ -950,6 +952,22 @@ public CompletableFuture<ClientCnx> getConnection(final 
String topic) {
                 .thenCompose(pair -> getConnection(pair.getLeft(), 
pair.getRight()));
     }
 
+    public CompletableFuture<ClientCnx> getConnection(final String topic, 
final String url) {
+        TopicName topicName = TopicName.get(topic);
+        return getLookup(url).getBroker(topicName).thenCompose(pair -> 
getConnection(pair.getLeft(), pair.getRight()));

Review Comment:
   Does this cause more unnecessary lookup execution?
   
   Can you explain the specific process of your blue and green release?



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