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 2022/09/26 00:51:32 UTC

[GitHub] [rocketmq] Oliverwqcwrw commented on a diff in pull request #5062: [ISSUE #5012] support escaping transactional messages

Oliverwqcwrw commented on code in PR #5062:
URL: https://github.com/apache/rocketmq/pull/5062#discussion_r979488874


##########
broker/src/main/java/org/apache/rocketmq/broker/transaction/queue/TransactionalMessageBridge.java:
##########
@@ -346,4 +346,16 @@ public MessageExt lookMessageByOffset(final long commitLogOffset) {
     public BrokerController getBrokerController() {
         return brokerController;
     }
+
+    public boolean escapeMessage(MessageExtBrokerInner messageInner) {
+        PutMessageResult putMessageResult = this.brokerController.getEscapeBridge().putMessage(messageInner);
+        if (putMessageResult != null

Review Comment:
   how about use `org.apache.rocketmq.store.PutMessageResult#isOk` to verify whether success,
   It's a little bit cleaner and it's consistent with everything else



-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org