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

   ### What happened?
   
   `RocketMQClientProvider.collectSubscriptionGroups` iterates 
`clusterInfo.getBrokerAddrTable().values()` and immediately calls 
`brokerData.selectBrokerAddr()`. If the broker address table contains a null 
value, the consumer connection scan throws `NullPointerException` and the 
Studio client connection list can fail instead of skipping malformed broker 
metadata.
   
   ### Location
   
   - 
`server/src/main/java/org/apache/rocketmq/studio/rocketmq/RocketMQClientProvider.java`
   
   ### Expected behavior
   
   The provider should skip null broker metadata entries while scanning 
subscription groups. Other valid brokers should still be queried.
   
   ### Scope
   
   This is in the RocketMQ Studio CLIENT-01 path for Remoting client connection 
discovery.
   
   ### Suggested fix
   
   Guard null `BrokerData` entries before selecting the broker address and add 
a provider unit test for malformed broker metadata.


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