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 2019/10/01 13:39:32 UTC

[GitHub] [rocketmq] RongtongJin commented on issue #504: No route info of this topic problem

RongtongJin commented on issue #504: No route info of this topic problem
URL: https://github.com/apache/rocketmq/issues/504#issuecomment-537040637
 
 
   @beijing-penguin 
   当前已经有一个PR提交到develop分支,还未被合入主分支,你可以尝试一下develop分支的客户端代码,如果是下面第一个原因导致的no route info of this topic,会直接抛出相应的错误。
   
   对于修改之前的版本,**建议你检查一下客户端的日志,日志中会有更加详细的异常信息**,在控制台上只能看到抛出异常。
   
   此外,根据no route info of this topic出现的原因,建议你从以下几个方面排查。
   1. 确保producer能连接上nameserver并且能从nameserver中获取topic的元数据信息。
     检查方法:通过查看日志、调试等方法进行检查,在最新的develop分支中该原因导致会直接抛出对应的异常。
     可能的原因:客户端没有设置nameserver,防火墙等网络问题。
   2. 确保nameserver中包含了需要发送的topic的路由。
     检查方法:通过admin工具或rocketmq web console进行检查。
     可能的原因:
   (1)Topic不存在且Broker禁止自动创建Topic(autoCreateTopicEnable=false),且没有通过手工方式创建Topic。
   (2)Broker没有正确连接到NameServer(broker能定期向nameserver发送心跳)
   3. 其他原因:Netty版本问题,fastjson问题,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


With regards,
Apache Git Services