Aias00 opened a new pull request, #10689: URL: https://github.com/apache/rocketmq/pull/10689
### Which Issue(s) This PR Fixes Fixes #10688 ### Brief Description `MessageQueueSelector.buildWrite` previously assumed every ordered route fragment from `orderTopicConf` used a valid `brokerName:queueNum` format. Malformed fragments could throw `ArrayIndexOutOfBoundsException` or `NumberFormatException`, and unknown broker names could make `TopicRouteWrapper.getMasterAddr` throw before the selector's null check could skip them. This PR validates each ordered route fragment before using it, skips malformed entries with a warning, and makes `TopicRouteWrapper.getMasterAddr` return `null` for unknown brokers so existing skip logic works as intended. Valid ordered route entries keep the existing behavior. ### How Did You Test This Change? ```bash mvn -pl proxy -Dtest=MessageQueueSelectorTest -DfailIfNoTests=false test ``` Result: `BUILD SUCCESS`, `Tests run: 3, Failures: 0, Errors: 0, Skipped: 0`. -- 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]
