You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Apache cluster views fabricate proxy connection counts and drop registered clusters #7414
Two Apache-cluster read paths report states that were never measured:
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).
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.
Activity