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

   ### Phenomenon
   
   On the Aliyun RocketMQ 5.x instance pages, two read paths silently drop or 
fabricate data:
   
   1. The group progress view (`getGroupProgress` -> 
`AliyunConverters.toQueueProgressRows`) reads only the `topicLagMap` of the 
`GetConsumerGroupLag` response. The same response also carries 
`liteTopicLagMap` for lite topics, which is silently discarded: a group that 
only consumes lite topics renders with zero rows (and, when `totalLag` is 
missing too, the aggregate fallback row is suppressed as well), so a real 
backlog is reported as "no lag data".
   2. A topic row in `topicLagMap` whose `readyCount` the API did not report is 
rendered as a measured `0` backlog - indistinguishable from "fully consumed", 
although the same converter already reports the group's unknown total lag as 
`ConsumerLagResolver.UNKNOWN` (-1).
   3. The instance catalog (`getCloudInstance` -> `toInstanceDetailVO`) keeps 
endpoint entries whose `endpointUrl` is null or blank. An entry without a URL 
cannot be used to connect; rendering it as an endpoint row hides that the 
usable endpoint list is shorter than it looks (the Tencent catalog already 
skips endpoints without an OPEN status and a URL).
   
   ### Root cause
   
   The converter treats "the API did not report a value" as "the value is 
zero", and maps only the regular-topic half of the lag payload. Unreported 
`Long` fields default to `0L` instead of the unknown sentinel the rest of the 
codebase uses, and unknown response sections (`liteTopicLagMap`) are never 
projected.
   
   ### Impact
   
   Operators see a healthy "no backlog" state while the group actually has 
unreadable or lite-topic backlog; the instance wizard offers connect endpoints 
that do not exist. Same failure-as-success class the 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