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

   ### Phenomenon
   
   Two Apache-cluster read paths report states that were never measured:
   
   1. `RocketMQClusterProvider.discoverProxies` builds every discovered proxy 
row with `connections(0)`. Heartbeat-syncer discovery proves the proxy node 
exists, but says nothing about its client connection count, so the console's 
Proxy page shows a fabricated "0 connections" next to a healthy status (the 
frontend `Proxy.tsx` already treats a null `connections` as unavailable via 
`renderNumberMetric`/`compareNullable`, but the backend `ProxyVO` field is a 
primitive `int` and can never carry that).
   2. `RealClusterProvider.toClusterVOs` drops any cluster whose BrokerData 
rows are absent from the NameServer's `brokerAddrTable` (`filter(cluster -> 
!cluster.getBrokers().isEmpty())`). A cluster the NameServer registered 
disappears entirely from the platform cluster list - the views cannot 
distinguish "no such cluster" from "registered but with no resolvable brokers" 
- and the behavior disagrees with `RocketMQClusterProvider`, which keeps the 
same topology row with an empty broker set.
   
   ### Root cause
   
   Unmeasured fields fall back to fabricated defaults (`int connections` forced 
to `0`) instead of the nullable "unknown" the API contract already supports, 
and a completeness-style filter silently removes registered-but-unresolvable 
clusters instead of listing them with what the NameServer actually reported.
   
   ### Impact
   
   Operators see "0 client connections" on every discovered proxy as if it were 
a measurement, and a registered cluster can vanish from cluster lists after a 
partial NameServer response, hiding topology that the NameServer explicitly 
reported.
   


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