mattisonchao opened a new pull request, #15852:
URL: https://github.com/apache/pulsar/pull/15852

   Fixes #15679 
   
   Master Issue: #15679
   
   ### Motivation
   
   `ZeroQueueConsumer` may not increase the permit after unloading the topic. 
because `internalReceiveAsync` is an async method. when it invokes 
`increaseAvailablePermits(cnx());` the cnx may not be the new cnx.
   
   
https://github.com/apache/pulsar/blob/c642731562205261e5bc9bcba16b42df354e745c/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ZeroQueueConsumerImpl.java#L85-L94
   
   ### Modifications
   
   - re-send permit when connection reconnected.
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   ### Documentation
   
   - [x] `doc-not-needed` 
   


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