Skip to content

Commit

Permalink
Merge pull request #2058 from RealBar/fix/issue2055
Browse files Browse the repository at this point in the history
[ISSUE #2055] Fix NPE in SendMessageProcessor.handleRetryAndDLQ
  • Loading branch information
duhenglucky committed Jul 21, 2021
2 parents 765cac3 + 74aa3e0 commit c63ec20
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ private CompletableFuture<RemotingCommand> asyncConsumerSendMsgBack(ChannelHandl

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

0 comments on commit c63ec20

Please sign in to comment.