RockteMQ-AI commented on issue #10873:
URL: https://github.com/apache/rocketmq/issues/10873#issuecomment-5229879623

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   **Root Cause:** `BrokerData.selectBrokerAddr` assumes `brokerAddrs` is 
non-null and non-empty. A default `BrokerData` instance throws 
`NullPointerException`, while an empty map reaches `Random.nextInt(0)` and 
throws `IllegalArgumentException`.
   **Impact:** Broker address selection — callers that invoke 
`selectBrokerAddr` before broker registration completes will encounter 
unhandled exceptions instead of a graceful null return.
   **Severity:** medium
   
   ---
   *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]

Reply via email to