lhotari commented on PR #20032:
URL: https://github.com/apache/pulsar/pull/20032#issuecomment-2468830783

   > > There's also another issue with the permits. `increaseAvailablePermits` 
should only be called if writing of the redeliverUnacknowledgedMessages command 
succeeds. That should be done in the promise callback of writeAndFlush to 
ensure that permits aren't increased in the case where the connection is not 
available.
   > 
   > yes, you are right. but this is a another problem, I think this pr don't 
need to handle this situation
   
   I agree that it's partially a different problem. However since this PR 
changes the behavior around it, I think that it would make sense to address the 
permit issue in this PR. Solving the issue will require a few lines of code.


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