You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2018/09/20 04:33:28 UTC

[GitHub] RongtongJin commented on issue #466: [ISSUE #465] topic should be added to topicList instead of clu…

RongtongJin commented on issue #466: [ISSUE #465] topic should be added to topicList instead of clu…
URL: https://github.com/apache/rocketmq/pull/466#issuecomment-423037072
 
 
   I think my understanding of systemTopicList is incorrect. Firstly, I thought that getSystemTopicList means getting all the topic names, then I read the code carefully yesterday and found [RouteInfoManager.getAllTopicList()](https://github.com/apache/rocketmq/blob/a220364b752669c474f9795884faed9bb4e0a8c1/namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java#L86) has done this. I traced the call chain of getSystemToplicList and found [MQClientAPIImpl.getSystemTopicList()](https://github.com/apache/rocketmq/blob/a220364b752669c474f9795884faed9bb4e0a8c1/client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java#L1600) is the last method called, so RouteManagerInfo.getSystemTopicList() never be called? ? ? 
   At the same time, I found some systemTopic will be added in [rocketmq.broker.topic.TopicConfigManager#TopicConfigManager()](https://github.com/apache/rocketmq/blob/a220364b752669c474f9795884faed9bb4e0a8c1/broker/src/main/java/org/apache/rocketmq/broker/topic/TopicConfigManager.java#L57) when the BrokerController is initialized, including the brokerName and cluster name. So the cluster name and broker name should be added to the systemTopicList. I am sorry, I will read the code more carefully.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services