diff --git a/broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java b/broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java index a76c144c08ed4109aed7b8470265750c7ee28981..1b1cf4ba53ad6778aaafc3967b0c969f3756f71b 100644 --- a/broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java +++ b/broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java @@ -197,6 +197,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement response.setRemark("topic[" + newTopic + "] not exist"); return CompletableFuture.completedFuture(response); } + msgExt.setDelayTimeLevel(0); } else { if (0 == delayLevel) { delayLevel = 3 + msgExt.getReconsumeTimes(); @@ -358,6 +359,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement ); msg.setTopic(newTopic); msg.setQueueId(queueIdInt); + msg.setDelayTimeLevel(0); if (null == topicConfig) { response.setCode(ResponseCode.SYSTEM_ERROR); response.setRemark("topic[" + newTopic + "] not exist");