RockteMQ-AI commented on issue #11415: URL: https://github.com/apache/rocketmq/issues/11415#issuecomment-6145143517
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** The reported issue has been verified against the current codebase. **Root Cause:** In `ConsumeMessageCommand.executeDefault()` line 270, the else branch decrements `countLeft` by `(maxOffset - minOffset) + 1` instead of `(maxOffset - minOffset)`. The extra `-1` causes the remaining quota to be consumed one message too early per queue. **Impact:** When consuming across multiple queues with `-c` limit, the tool delivers fewer messages than requested. **Severity:** Medium — correctness issue in admin tooling. The proposed fix (removing the `- 1` from the else branch) is correct. Looking forward to the PR. --- *Automated evaluation by RockteMQ-AI* -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
