NUAAwqy opened a new issue, #7405:
URL: https://github.com/apache/rocketmq-dashboard/issues/7405

   ### Phenomenon
   
   On Tencent Cloud (Trocket) instance pages, several read paths turn a failed 
or incomplete upstream response into a plausible-looking success:
   
   1. `getTopicConsumers` stops silently at the legacy 100-page (10,000 
subscription) cap. When a topic has more subscriptions, the console shows a 
"complete" consumer list that is actually truncated, while the sibling 
`listTopicSubscriptionsByGroup` path already fetches past the same cap.
   2. A subscription whose `ConsumerLag` the API did not report is rendered as 
a measured `0` backlog in `getTopicConsumers` and `getGroupProgress`, although 
`enrichConsumerGroupDetail` maps exactly the same situation to the unknown 
sentinel (`-1`) that the frontend renders as unavailable.
   3. `getMessageTrace` renders a `null` `DescribeMessageTrace` response as a 
trace with zero nodes and zero consumer status - a trace lookup failure is 
indistinguishable from "this message has no trace".
   4. The message-detail path (`queryMessages` by msgId) renders a `null` 
`DescribeMessage` response as a complete empty result, and a corrupt 
(unparseable or non-object) `Properties` JSON payload as a message without 
properties.
   
   ### Root cause
   
   The Tencent provider treats "the API returned nothing / nothing parseable" 
and "the API returned an empty dataset" as the same case: `response == null` 
falls through to empty-result builders, `catch (Exception e) { return 
Collections.emptyMap(); }` swallows corrupt `Properties` payloads, the 
topic-consumer paging loop caps at `MAX_PAGES` without any truncation signal, 
and unreported `Long` lag fields default to `0L` instead of the unknown 
sentinel the rest of the codebase already uses.
   
   ### Impact
   
   Operators see a healthy empty/zero state while the cloud call actually 
failed or was truncated: missing trace evidence during troubleshooting, silent 
10,000-consumer truncation on large topics, and false "no backlog" / "no 
properties" rows. The console cannot distinguish an outage from genuinely empty 
data, which is exactly the failure-as-success class of defect this project has 
been cleaning up (reject incomplete pages, report unmeasured values as 
unmeasured).
   


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