BetterGC opened a new issue #3003:
URL: https://github.com/apache/rocketmq/issues/3003


   4.7.0版本  按照github上docs中多master多slave配置 master down掉后  客户端访问rocket 报找不到路由 
,配置文件都是用的默认的,跟源码 
org.apache.rocketmq.namesrv.routeinfo.RouteInfoManager#pickupTopicRouteData方法 
走到388行 从topicQueueTable中取出topic对应的QueueData 为null,  主节点down掉后 
topicQueueTable中会删除对应的主节点数据,在org.apache.rocketmq.namesrv.routeinfo.RouteInfoManager#createAndUpdateQueueData方法中会进行topicQueueTable数据添加,数据添加的前提条件是if
 (null != topicConfigWrapper && MixAll.MASTER_ID == brokerId) 
要求brokerId=0,但是从节点的brokerId不为0,导致走不进去,topicQueueTable中没有数据,导致主节点宕机后,生产者发送消息一直报:No
 topic route info in name server for the topic。这是配置有问题还是文档有问题还是代码有问题呢?
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to