rdhabalia commented on a change in pull request #3240: timeout stuck 
producer/consumer operation request
URL: https://github.com/apache/pulsar/pull/3240#discussion_r245438615
 
 

 ##########
 File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java
 ##########
 @@ -668,6 +668,15 @@ SocketAddress serverAddrees() {
                 future.completeExceptionally(writeFuture.cause());
             }
         });
+        eventLoopGroup.schedule(() -> {
 
 Review comment:
   > this would be scheduled per request. so it would end up with a lot of 
timeout tasks, 
   
   in ideal scenario, application will have max few hundred producers/consumers 
and in worst case, 1 timeout task per producer/consumer so, it should not have 
large number of pending tasks. So, not sure if that will be create any 
performance impact.
   
   > there is no mechanism to cancel the timeout tasks. so all tasks will be 
remaining until they are timed out. Can we change the approach to have one 
timer task that peridocally check the pending requests list?
   
   umm.. that makes sense. Let me fix it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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