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

   ### Problem
   `RocketMQDashboardProvider` initializes each cluster overview version to 
`unknown`, then only assigns the broker runtime `brokerVersionDesc` when the 
current value is **not** `unknown`:
   
   ```java
   String version = "unknown";
   ...
   if (v != null && !"unknown".equals(version)) {
       version = v;
   }
   ```
   
   Because the initial value is `unknown`, the condition is false on the first 
runtime stat response, so the dashboard cluster overview keeps reporting 
`unknown` even when brokers expose `brokerVersionDesc`.
   
   ### Impact
   The Studio dashboard cannot show the real RocketMQ broker version in the 
cluster overview, which weakens the Control Plane / dashboard baseline view.
   
   ### Expected behavior
   When broker runtime stats contain `brokerVersionDesc`, the cluster overview 
should use that value. If no broker reports a version, it should keep `unknown`.
   
   ### Code evidence
   - 
`server/src/main/java/org/apache/rocketmq/studio/rocketmq/RocketMQDashboardProvider.java`
   
   ### Suggested fix
   Assign `brokerVersionDesc` when it is non-blank and the current cluster 
version is still `unknown`, and add a provider test for the dashboard cluster 
overview version.
   


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