zmuxuny opened a new issue, #4513: URL: https://github.com/apache/rocketmq-dashboard/issues/4513
### Before Creating the Bug Report - [x] I searched open/closed issues and PRs for Tencent `DescribeMessageList` pagination and incomplete results when this issue was filed. - [x] The affected code was present on `master@987b748e8f4f421c5cd3c4c4e51a064cc7e59f18`. ### Problem `TencentInstanceProvider.queryMessagesDetailed` can stop at a short or empty `DescribeMessageList` page and return `MessageQueryResult.complete(...)` even when the response's known `TotalCount` says more rows remain. A controlled response with `TotalCount > collected` and an empty page makes Studio report a complete empty or partial result. The code path is demonstrated with response fixtures; no live provider response for this contradiction has been captured. ### Impact A caller can receive `resultMayBeTruncated=false` despite a reported remaining total. In the message page or MCP output, that makes a partial diagnostic query look conclusive. ### Expected behavior - When a known total contradicts a short/empty page, preserve already collected messages and return an incomplete result with `resultMayBeTruncated=true` through the existing `MessageQueryResult.truncated(...)` channel. Do not turn a successful query response into HTTP 502 for this condition. - Preserve genuine empty results, TaskRequestId/offset progression, existing result budgets, and the fallback when the provider does not report a usable total. - Keep transport/RPC error handling unchanged. ### Linked implementation and verification [#4514](https://github.com/apache/rocketmq-dashboard/pull/4514) implements this Tencent behavior and applies the same known-total completeness check to Aliyun message queries. At revision `858fe917`, controlled tests cover initial and later incomplete pages, retained rows, task progression, and local tag filtering. The PR reports 138/138 focused tests passing, Checkstyle 0, and a successful package build. Those are local fixture/build results, not live provider captures. Apache's queue-offset scan has a different contract and remains outside this PR's production changes. Related #3047/#3048 addressed Studio's own page/result budget; this issue concerns a provider page that contradicts its reported total. AI-assisted source audit; Tencent's API documentation was checked before filing. -- 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]
