You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "subodhwandile (via GitHub)" <gi...@apache.org> on 2026/10/02 11:13:31 UTC
Re: [I] Topic rebalances cause consumers with receiverQueueSize=0 to get stuck when calling receiveAsync() [pulsar]
subodhwandile commented on issue #15679:
URL: https://github.com/apache/pulsar/issues/15679#issuecomment-5951088443
I'd like to pick this up if @mattisonchao isn't working on it. Root cause on current master: ZeroQueueConsumerImpl.consumerIsReconnectedToBroker() only re-sends a permit for blocking receive() or an idle listener, so pending receiveAsync() futures get no permit on the new connection. My fix counts the not-done futures in pendingReceives on reconnect and sends that many permits, with no new locks. That also covers the concurrent-receiveAsync() concern raised in #15852. I have 2 regression tests in ZeroQueueSizeTest that time out on master and pass with the fix. I'll open a PR once my fork's CI passes. @lhotari , could this be assigned to me?
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org