cimastone commented on issue #207:
URL: 
https://github.com/apache/rocketmq-externals/issues/207#issuecomment-616644635


   今天我也遇到了这个问题
   
服务器上跑的版本上4.7.0,本地跑的client是4.3.0;跟踪源码得;生产者在与namesrv连接时,会从namesrv获取topic对应的broker信息,当没有该topic时,会以AUTO_CREATE_TOPIC_KEY默认key去获取broker信息,然后连接broker;broker再进行判断是否需要新建topic;
   4.3版本的MixAll.java
   `public static final String AUTO_CREATE_TOPIC_KEY_TOPIC = 
"AUTO_CREATE_TOPIC_KEY";`
   4.7版本的MixAll.java
      ` public static final String AUTO_CREATE_TOPIC_KEY_TOPIC = "TBW102"; `
   
   至于说在启动的时候指定 autoCreateTopicEnable=true,已经没有必要了,至少我看4.3.0版本的源码,该属性值默认是true
   


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