sijie commented on a change in pull request #6365: Add retry when using async 
method to perform request in AsyncHttpConnector
URL: https://github.com/apache/pulsar/pull/6365#discussion_r386057278
 
 

 ##########
 File path: 
pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/http/AsyncHttpConnector.java
 ##########
 @@ -176,39 +153,39 @@ private URI replaceWithNew(InetSocketAddress address, 
URI uri) {
         return URI.create(newUri);
     }
 
+    @Override
+    public Future<?> apply(ClientRequest jerseyRequest, AsyncConnectorCallback 
callback) {
+        final CompletableFuture<ClientResponse> respFuture = new 
CompletableFuture<>();
+        triedAddressees = new HashSet<>();
 
 Review comment:
   Why do we need `triedAddresses` to be a member variable? This method will be 
used concurrently.

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