Skip to content

Commit

Permalink
Fix autoBatch not compatible with batchConsumeQueue (#4563)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyinyou committed Jul 6, 2022
1 parent 001dfa8 commit 2569041
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -35,6 +35,7 @@
import org.apache.rocketmq.common.ServiceThread;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.common.message.MessageBatch;
import org.apache.rocketmq.common.message.MessageClientIDSetter;
import org.apache.rocketmq.common.message.MessageConst;
import org.apache.rocketmq.common.message.MessageDecoder;
import org.apache.rocketmq.common.message.MessageQueue;
Expand Down Expand Up @@ -409,6 +410,7 @@ private MessageBatch batch() {
messageBatch.setWaitStoreMsgOK(this.aggregateKey.waitStoreMsgOK);
messageBatch.setKeys(this.keys);
messageBatch.setTags(this.aggregateKey.tag);
MessageClientIDSetter.setUniqID(messageBatch);
messageBatch.setBody(MessageDecoder.encodeMessages(this.messages));
return messageBatch;
}
Expand Down

0 comments on commit 2569041

Please sign in to comment.