Tang-Kin-Long opened a new pull request, #11631: URL: https://github.com/apache/rocketmq/pull/11631
### Which Issue(s) This PR Fixes - Fixes #11630 ### Brief Description `mqadmin exportMetrics` previously wrote the local mqadmin version to every broker's `runtimeVersion.rocketmqVersion` field in `metrics.json`. This could make brokers running different versions appear to be on the same release. The command now reads `brokerVersionDesc` from each broker's existing runtime stats response. The report format stays the same, and no additional RPC is needed. ### How Did You Test This Change? Ran `ExportMetricsCommandTest` with two mocked brokers reporting `V5_3_2` and `V5_4_0`. The test executes the export command and reads the generated `metrics.json`. Before the fix, the first assertion failed because `broker-a` was reported as `V5_5_1`, the local mqadmin version. After the fix, the same test passed and verified the correct version for both brokers. -- 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]
