geektao opened a new issue #2377:
URL: https://github.com/apache/rocketmq/issues/2377


   When broker disabled auto create topic(default createTopicKey=TBW102),client 
will log too many `updateTopicRouteInfoFromNameServer Exception` warn 。 
   
   ````
   updateTopicRouteInfoFromNameServer Exception
   org.apache.rocketmq.client.exception.MQClientException: CODE: 17  DESC: No 
topic route info in name server for the topic: TBW102
   See http://rocketmq.apache.org/docs/faq/ for further details.
        at 
org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQClientAPIImpl.java:1383)
        at 
org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQClientAPIImpl.java:1353)
        at 
org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromNameServer(MQClientInstance.java:622)
        at 
org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromNameServer(MQClientInstance.java:509)
        at 
org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromNameServer(MQClientInstance.java:358)
        at 
org.apache.rocketmq.client.impl.factory.MQClientInstance$3.run(MQClientInstance.java:275)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   ````
   
   Review source code, I know `createTopicKey ` just  for testing or demo 
program. So too much logs is a bad smell.
   ````
       /**
        * Just for testing or demo program
        */
       private String createTopicKey = 
TopicValidator.AUTO_CREATE_TOPIC_KEY_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