sijie commented on a change in pull request #5603: Add retry when create 
producer async
URL: https://github.com/apache/pulsar/pull/5603#discussion_r344677434
 
 

 ##########
 File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
 ##########
 @@ -641,17 +641,45 @@ public void reloadLookUp() throws PulsarClientException {
 
     public CompletableFuture<PartitionedTopicMetadata> 
getPartitionedTopicMetadata(String topic) {
 
-        CompletableFuture<PartitionedTopicMetadata> metadataFuture;
+        CompletableFuture<PartitionedTopicMetadata> metadataFuture = new 
CompletableFuture<>();
 
         try {
             TopicName topicName = TopicName.get(topic);
-            metadataFuture = lookup.getPartitionedTopicMetadata(topicName);
+            AtomicLong opTimeoutMs = new 
AtomicLong(conf.getOperationTimeoutMs());
+            Backoff backoff = new BackoffBuilder()
 
 Review comment:
   Not direct related to this change. but we should consider adding backoff for 
other places as well.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to