Skip to content

Apache cluster views fabricate proxy connection counts and drop registered clusters #7414

Backlog

Description

@NUAAwqy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions