zangyk commented on issue #386: 4.3事务消息回查功能 URL: https://github.com/apache/rocketmq/issues/386#issuecomment-409824160 MQClientInstance中是通过topic从nameserver上确定对应哪些的broker的,如果不发消息,MQClientInstance中调用MQProducerInner的getPublishTopicList(),中就没有这个topic的值,获取不到对应的broker,发心跳时也就不会给这些broker发心跳。 也有一种其他处理方法是:producer在start前,设置producer.setCreateTopicKey("topic");这样即使不发消息,MQClientInstance也能知道topic对应的broker,向他们发送心跳,可以在broker注册producer信息,向它发回查消息。
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
