caigy commented on code in PR #4834:
URL: https://github.com/apache/rocketmq/pull/4834#discussion_r951323779


##########
broker/src/main/java/org/apache/rocketmq/broker/failover/EscapeBridge.java:
##########
@@ -127,29 +112,74 @@ public PutMessageResult putMessage(MessageExtBrokerInner 
messageExt) {
         }
     }
 
+    private SendResult putMessageToRemoteBroker(MessageExtBrokerInner 
messageExt) {
+        final TopicPublishInfo topicPublishInfo = 
this.brokerController.getTopicRouteInfoManager().tryToFindTopicPublishInfo(messageExt.getTopic());
+        if (null == topicPublishInfo || !topicPublishInfo.ok()) {
+            LOG.warn("putMessageToRemoteBroker: no route info of topic {} when 
escaping message, msgId={}",
+                messageExt.getTopic(), messageExt.getMsgId());
+            return null;
+        }
+
+        final long invokeID = RandomUtils.nextLong(0, Long.MAX_VALUE);

Review Comment:
   I'll remove it for it is unnecessary.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to