RockteMQ-AI commented on issue #1947: URL: https://github.com/apache/rocketmq-dashboard/issues/1947#issuecomment-5261750273
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the current codebase on the `rocketmq-studio` branch. **Root Cause:** `RocketMQDashboardProvider.collectDashboardData()` unconditionally hardcodes `.totalProxies(0).totalNameServers(0)` in `DashboardStatsVO` (lines 120–122) and `.proxies(0)` in `ClusterOverviewVO` (line 212), regardless of the instance type. For Direct instances the NameServer count is knowable from the configured endpoint; for Proxy instances the access endpoint may be a load balancer and the count is genuinely unknown — but the code makes no distinction. **Impact:** Dashboard UI renders `0` as if the cluster has no Proxy or NameServer nodes, which is misleading for all instance types. **Severity:** Medium — incorrect dashboard metrics, no data loss or functional breakage. **Evidence:** - `InstanceType` enum: `PROXY`, `DIRECT` - `ClusterType` enum: `V4_DIRECT`, `V5_PROXY_LOCAL`, `V5_PROXY_CLUSTER` - `clusterTypeFor()` maps all non-DIRECT → `V5_PROXY_CLUSTER` A fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by @RockteMQ-AI* -- 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]
