Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][broker] Fix consumer receive individual acknowledged messages from compacted topic after reconnection #23495

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

summeriiii
Copy link
Contributor

Fixes #23494

Motivation

After consumed the compacted topic and individual acknowledged messages, if the topic unload and consumer reconnect, we will receive the individual acknowledged messages again.
Like the none-compacted topic, I think that consumer should not receive acknowledge message after reconnection.

Modifications

  • add isMessageIndividualDeleted to check if this message has been individual acknowledged
  • In CompactedTopicUtils#asyncReadCompactedEntries, use isMessageIndividualDeleted to filter out and skip unnecessary entry

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Oct 21, 2024
@summeriiii
Copy link
Contributor Author

@coderzc PTAL~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Consumer receive acknowledged messages from compacted topic after reconnection
1 participant