Skip to content

[fix] [client] chunked message uuid-queue never removes entries on successful processing - #26658

Open
programmerahul wants to merge 6 commits into
apache:masterfrom
programmerahul:fix/chunked-message-uuid-queue-leak
Open

programmerahul wants to merge 6 commits into
apache:masterfrom
programmerahul:fix/chunked-message-uuid-queue-leak

Conversation

@programmerahul

@programmerahul programmerahul commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Fixes: #26676
uuid-queue pendingChunkedMessageUuidQueue doesn't remove entries after a chunked message is processed. So after processing 1M chunked messages, this queue has 1M entries.
This can be reproduced easily by sending chunked message and on consumer end simply acking those. So once the consumer processs 1M message , this queue also reached that size.

@programmerahul

Copy link
Copy Markdown
Contributor Author

@lhotari Please review

@programmerahul

Copy link
Copy Markdown
Contributor Author

The larger issue with this is that , after processing of first chunked message, the expiry mechanism removeExpireIncompleteChunkedMessages() can't work for any incomplete message, because the logic will always find the first uuid from blockingQueue, but not in the chunkedMessageMap.

@programmerahul

Copy link
Copy Markdown
Contributor Author

@poorbarcode @void-ptr974 @merlimat @codelipenghui @BewareMyPower @Demogorgon314 please review this PR. This is easily reproducible bug, and as a side-effect of it, the expiry mechanism doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] chunked message uuid-queue never removes entries on successful processing

1 participant