RockteMQ-AI commented on issue #11041:
URL: https://github.com/apache/rocketmq/issues/11041#issuecomment-5556532266
**Issue Evaluation**
Category: `bug` | Status: **Confirmed**
Verified against `MQClientAPIImpl` pagination logic. The off-by-one error is
clear:
```java
if (topicSeq >= totalTopicNum - 1) { // line 3125
if (groupSeq >= totalGroupNum - 1) { // line 3033
```
When `N ≡ 1 (mod pageSize)` (e.g., 2001 topics with pageSize 2000), the loop
terminates after fetching `k*pageSize` entries, leaving exactly one entry
unfetched.
**Note:** A fix PR already exists —
[#11042](https://github.com/apache/rocketmq/pull/11042).
**Severity:** Medium — silent metadata truncation with no error or retry.
---
*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]