mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
@@ -372,6 +372,10 @@ public class CanalRocketMQProducer extends AbstractMQProducer implements CanalMQ
|
|||||||
topicName = this.defaultMQProducer.withNamespace(topicName);
|
topicName = this.defaultMQProducer.withNamespace(topicName);
|
||||||
DefaultMQProducerImpl innerProducer = this.defaultMQProducer.getDefaultMQProducerImpl();
|
DefaultMQProducerImpl innerProducer = this.defaultMQProducer.getDefaultMQProducerImpl();
|
||||||
TopicPublishInfo topicInfo = innerProducer.getTopicPublishInfoTable().get(topicName);
|
TopicPublishInfo topicInfo = innerProducer.getTopicPublishInfoTable().get(topicName);
|
||||||
|
if (topicInfo == null) {
|
||||||
|
innerProducer.getMqClientFactory().updateTopicRouteInfoFromNameServer(topicName);
|
||||||
|
}
|
||||||
|
topicInfo = innerProducer.getTopicPublishInfoTable().get(topicName);
|
||||||
if (topicInfo == null) {
|
if (topicInfo == null) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user