RockteMQ-AI commented on issue #1805: URL: https://github.com/apache/rocketmq-dashboard/issues/1805#issuecomment-5254290756
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported pagination issue has been verified in `MessageServiceImpl`. **Root Cause:** When `total <= offset`, the code returns `Page.empty()` which resets total elements to zero and page number to default, losing the known total from queue offsets. **Impact:** Pagination metadata becomes inconsistent when requesting pages beyond the known message total, confusing frontend pagination controls. **Severity:** Medium — affects pagination UX but doesn't cause data loss or incorrect message retrieval. **Suggested Fix:** Return `new PageImpl<>(Collections.emptyList(), pageable, total)` instead of `Page.empty()` to preserve the known total. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager* -- 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]
