You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2026/10/20 14:21:56 UTC
Re: [PR] [fix][client] Fix message leaks and size and permit accounting races when clearing the consumer's incoming queue [pulsar]
lhotari commented on PR #21767:
URL: https://github.com/apache/pulsar/pull/21767#issuecomment-6293091945
@Denovo1998 Thanks for the review. I checked this and you're right. With a parent listener, `ConsumerImpl.messageProcessed()` skips giving back the permit (`parentConsumerHasListener`), and only `ConsumerBase.callMessageListener()` gives it back. When `MultiTopicsConsumerImpl.redeliverUnacknowledgedMessages()` clears the parent queue, each child gives back permits only for its own queue, so the permits for messages that were already in the parent queue are lost until the child reconnects. The Shared/Key_Shared `removeExpiredMessagesFromQueue()` path has the same problem. The issue was there before this PR, and this PR doesn't change it, so I've opened #27016 to fix it separately.
--
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