Skip to content

Commit

Permalink
[ISSUE #8998] No retry is required when the remaining time reaches ze…
Browse files Browse the repository at this point in the history
…ro (#8999)
  • Loading branch information
3424672656 authored Jan 6, 2025
1 parent 2538c34 commit 0548593
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ private void onExceptionImpl(final String brokerName,
final DefaultMQProducerImpl producer
) {
int tmp = curTimes.incrementAndGet();
if (needRetry && tmp <= timesTotal) {
if (needRetry && tmp <= timesTotal && timeoutMillis > 0) {
String retryBrokerName = brokerName;//by default, it will send to the same broker
if (topicPublishInfo != null) { //select one message queue accordingly, in order to determine which broker to send
MessageQueue mqChosen = producer.selectOneMessageQueue(topicPublishInfo, brokerName, false);
Expand Down

0 comments on commit 0548593

Please sign in to comment.