lhotari opened a new pull request #10831:
URL: https://github.com/apache/pulsar/pull/10831
### Motivation
- there's a chance for a data race so that the consumer's available permits
goes
below zero after it has been checked in `isConsumerAvailable`
### Modifications
- check that `availablePermits > 0` before returning
--
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]