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 2020/10/27 02:57:56 UTC

[GitHub] [rocketmq] geektao opened a new issue #2377: when broker disabled auto create topic, client log too many `updateTopicRouteInfoFromNameServer Exception` warn

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:
users@infra.apache.org



[GitHub] [rocketmq] RongtongJin commented on issue #2377: when broker disabled auto create topic, client log too many `updateTopicRouteInfoFromNameServer Exception` warn

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #2377:
URL: https://github.com/apache/rocketmq/issues/2377#issuecomment-717255398


   This is due to the logic of creating topic when rocketmq is sent. It is welcomed to submit PR to optimize the output of error log.


----------------------------------------------------------------
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:
users@infra.apache.org