The GitHub Actions job "Run Integration Tests" on 
rocketmq.git/fix/topic-route-wrapper-npe has failed.
Run started by GitHub user yyqdbngt (triggered by yyqdbngt).

Head commit for run:
6a684857dd8407a0347e5c1faf1d8a5895b2ade2 / yyqdbngt 
<[email protected]>
fix: guard NPE in TopicRouteWrapper when brokerName is absent from the route

getMasterAddr and getMasterAddrPrefer called
brokerNameRouteData.get(brokerName).getBrokerAddrs() without a null check,
so a brokerName not present in the current route snapshot (e.g. during
broker failover or a stale MessageQueue) threw NullPointerException.

This contradicts the contract the callers rely on: MessageQueueSelector
(buildRead/buildWrite) and ClusterTopicRouteService all check the return
value for null and skip the broker. Return null when the broker is missing
so the existing caller handling works as intended.

Compiled and verified on the build server (mvn -pl proxy -am compile).

Report URL: https://github.com/apache/rocketmq/actions/runs/30704554542

With regards,
GitHub Actions via GitBox

Reply via email to