GitHub user lhotari edited a comment on the discussion: Negative consumer 
availablePermits

Yes, I've seen this before. Some analysis at 
https://github.com/apache/pulsar/issues/23263 . However, this code location 
might be a more likely reason for negative availablePermits:
https://github.com/apache/pulsar/blob/e7eb7b37a779f9b74b8abf43cf622957663495d1/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java#L1143-L1157

It happens when redeliveries are requested. That happens by the Java client 
when an ack timeout occurs or when a message is negatively acknowledged.

GitHub link: 
https://github.com/apache/pulsar/discussions/24298#discussioncomment-13135896

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@pulsar.apache.org

Reply via email to