This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8abc0a1cf7 [ISSUE #9481] Fix Issue 4050 didn't fix completely (#9482)
8abc0a1cf7 is described below

commit 8abc0a1cf7678b0392371e948000211382ae1491
Author: WJ66880 <[email protected]>
AuthorDate: Fri Jun 20 11:31:11 2025 +0800

    [ISSUE #9481] Fix Issue 4050 didn't fix completely (#9482)
---
 .../apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
 
b/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
index c93cff4245..0ae779971c 100644
--- 
a/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
+++ 
b/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
@@ -786,12 +786,12 @@ public class DefaultMQPushConsumerImpl implements 
MQConsumerInner {
 
     private void sendMessageBackAsNormalMessage(MessageExt msg) throws  
RemotingException, MQBrokerException, InterruptedException, MQClientException {
         Message newMsg = new 
Message(MixAll.getRetryTopic(this.defaultMQPushConsumer.getConsumerGroup()), 
msg.getBody());
+        MessageAccessor.setProperties(newMsg, msg.getProperties());
 
         String originMsgId = MessageAccessor.getOriginMessageId(msg);
         MessageAccessor.setOriginMessageId(newMsg, 
UtilAll.isBlank(originMsgId) ? msg.getMsgId() : originMsgId);
 
         newMsg.setFlag(msg.getFlag());
-        MessageAccessor.setProperties(newMsg, msg.getProperties());
         MessageAccessor.putProperty(newMsg, MessageConst.PROPERTY_RETRY_TOPIC, 
msg.getTopic());
         MessageAccessor.setReconsumeTime(newMsg, 
String.valueOf(msg.getReconsumeTimes() + 1));
         MessageAccessor.setMaxReconsumeTimes(newMsg, 
String.valueOf(getMaxReconsumeTimes()));

Reply via email to