Skip to content

Conversation

@BewareMyPower
Copy link
Contributor

Motivation

The callback in acknowledgeCumulative will never be called for a multi-topics consumer when the message id is invalid.

Modifications

  • Fail the callback with ResultOperationNotSupported when the topic name of the message id is invalid
  • Keep the behavior the same for acknowledge
  • Add MultiTopicsConsumerTest.testAcknowledgeInvalidMessageId to verify an invalid message id won't block any acknowledge method

@BewareMyPower BewareMyPower added this to the 3.8.0 milestone Jun 6, 2025
@BewareMyPower BewareMyPower self-assigned this Jun 6, 2025
@BewareMyPower BewareMyPower added the bug Something isn't working label Jun 6, 2025
@merlimat merlimat merged commit 9e119ce into apache:main Jun 10, 2025
14 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-multi-topics-ack-stuck branch June 11, 2025 01:23
BewareMyPower added a commit that referenced this pull request Jun 23, 2025
…sage id for a multi-topics consumer (#492)

(cherry picked from commit 9e119ce)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants