GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — [Bug] Negative available permits with consumer stuck · Issue #24418 · apache/pulsar Closed Labels type/bugThe PR fixed a bug or issue reported a bug DescriptionSearch before reporting
Read release policy
User environment
Issue DescriptionHello @sijie, We got this issue on our public cluster in production using the version on master branch at this time with commit (1b7e4a7) and using pulsar-rs as driver for producers and consumers (streamnative/pulsar-rs@5b476d6). We got in a state where consumers where unable to consume messages as the So, we dig in closer and goes through the source code of the broker and find something interesting there that may explain what is on going. What we found out is that counter is updated at https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java#L422 and its able to go under zero. Line 300 in 7702bde
As we are consuming in batch mode, sometimes the consumer got stuck with the case above of the unackedMessages is equals to the batchSize of the consumer less the availablePermits.
We are not sure of what happens and would like a bit of help here, but from what I understand, there is a way of the Error messagesReproducing the issueThe condition when we see the bug is on a subscription on partitioned topic with 12 partitions taking 10k messages/s continuously, with producer that send batch messages of 1024 messages and consumers that have a batch size at 5k messages. It happens in fail over, shared and key-shared subscription type. Additional informationAre you willing to submit a PR?
Reacted by Alexandre Burgoni and Allemand Sébastien Reacted by kannar Activity
MetadataMetadataAssigneesLabelstype/bugThe PR fixed a bug or issue reported a bug TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |