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 03:02:29 UTC

[GitHub] [rocketmq] xdkxlk commented on a diff in pull request #5161: [ISSUE #3905] Support bname in protocol for 4.9.x client

xdkxlk commented on code in PR #5161:
URL: https://github.com/apache/rocketmq/pull/5161#discussion_r979522995


##########
common/src/main/java/org/apache/rocketmq/common/protocol/header/EndTransactionRequestHeader.java:
##########
@@ -128,4 +130,12 @@ public String toString() {
             ", transactionId='" + transactionId + '\'' +

Review Comment:
   The new fields need to be added into toString



##########
common/src/main/java/org/apache/rocketmq/common/protocol/header/CheckTransactionStateRequestHeader.java:
##########
@@ -20,18 +20,19 @@
  */
 package org.apache.rocketmq.common.protocol.header;
 
-import org.apache.rocketmq.remoting.CommandCustomHeader;
+import org.apache.rocketmq.common.rpc.RpcRequestHeader;
 import org.apache.rocketmq.remoting.annotation.CFNotNull;
 import org.apache.rocketmq.remoting.exception.RemotingCommandException;
 
-public class CheckTransactionStateRequestHeader implements CommandCustomHeader {
+public class CheckTransactionStateRequestHeader extends RpcRequestHeader {
     @CFNotNull
     private Long tranStateTableOffset;
     @CFNotNull
     private Long commitLogOffset;
     private String msgId;
     private String transactionId;
     private String offsetMsgId;
+    private int queueId;
 

Review Comment:
   The CheckTransactionStateRequestHeader is sent by broker. I think we should change the org.apache.rocketmq.broker.client.net.Broker2Client#checkProducerTransactionState to set the new fileds



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