-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix batched messages not ACKed correctly when batch index ACK is disa…
…bled (#994) * Fix batched messages not ACKed correctly when batch index ACK is disabled Fixes #993 ### Motivation When batch index ACK is disabled, if N messages in a batch are acknowledged, currently only the batched message ID of the last message will be acknowledged. This behavior is wrong because we need to acknowledge the whole batch. ### Modifications - Create a `messageID` instance to ACK for this case - Add `TestConsumerBatchIndexAckDisabled` to cover this case * Fix ackRequest error * Fix wrong received msg id * Add comments
- Loading branch information
1 parent
b8563cd
commit 04ad521
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters