From bc3eeed412ca33b7c0090d70cd3be72015bc8fb3 Mon Sep 17 00:00:00 2001 From: wangyalou <1374178468@qq.com> Date: Sun, 31 May 2020 10:29:46 +0800 Subject: [PATCH] fix: fix issue 2055 --- .../rocketmq/broker/processor/SendMessageProcessor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 801d886c..1b836ebf 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 @@ -178,7 +178,10 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement int maxReconsumeTimes = subscriptionGroupConfig.getRetryMaxTimes(); if (request.getVersion() >= MQVersion.Version.V3_4_9.ordinal()) { - maxReconsumeTimes = requestHeader.getMaxReconsumeTimes(); + Integer times = requestHeader.getMaxReconsumeTimes(); + if (times != null){ + maxReconsumeTimes = times; + } } if (msgExt.getReconsumeTimes() >= maxReconsumeTimes -- GitLab