RockteMQ-AI commented on issue #2220: URL: https://github.com/apache/rocketmq-dashboard/issues/2220#issuecomment-5300443611
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the current codebase. **Root Cause:** `ClusterTopology.addNode` inserts the node into `nodeMap` (line 79) before the `switch (nodeType)` dispatch. A null `nodeType` causes an NPE after a ghost entry is already written; an unsupported type silently creates a `nodeMap` entry that no typed list tracks, making `getTotalNodeCount()` inconsistent with `nodeMap.size()`. **Impact:** Topology model integrity — any caller relying on `nodeMap` vs typed-list consistency will observe phantom entries or crashes. **Severity:** medium An automated fix proposal will be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager-bot* -- 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]
