NUAAwqy opened a new pull request, #7406:
URL: https://github.com/apache/rocketmq-dashboard/pull/7406

   ### Which Issue(s) This PR Fixes
   
   - Fixes #7405
   
   ### Brief Description
   
   The Tencent provider reported failures and missing measurements as 
successful empty/zero results. Every read path touched here now either returns 
real data or fails explicitly:
   
   - `getTopicConsumers`: removed the silent `MAX_PAGES` cap so paging fetches 
past the legacy ten-thousand cap like `listTopicSubscriptionsByGroup`; the 
existing completeness guard turns an actually incomplete page into a 502 
instead of a truncated "complete" list.
   - `getTopicConsumers` / `getGroupProgress`: a subscription whose 
`ConsumerLag` is not reported now carries `ConsumerLagResolver.UNKNOWN` (-1, 
which the frontend renders as unavailable) instead of a fabricated `0` backlog, 
matching what `enrichConsumerGroupDetail` already does.
   - `getMessageTrace`: a null `DescribeMessageTrace` response now throws 502 
instead of returning an empty-but-successful trace (same contract as 
`consumeMessageDirectly`/`sendMessage` for empty responses).
   - `queryMessages` by msgId: a null `DescribeMessage` response now throws 502 
instead of a "complete, 0 messages" result; unknown message ids already surface 
as 404 through the `ResourceNotFound` mapping.
   - `parseProperties`: corrupt (unparseable or non-object) `Properties` JSON 
on a message detail now throws 502 instead of silently rendering the message 
without its properties; a blank payload still legitimately means "no 
properties".
   
   7 new JUnit tests were added and verified to fail on the pre-fix code (7 
failures) and pass afterwards (120/120 green across the Tencent suites).
   


-- 
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]

Reply via email to