Skip to content

Commit

Permalink
[ISSUE #8168] fix: There's no need to retry when async produce alread…
Browse files Browse the repository at this point in the history
…y timeout (#8169)
  • Loading branch information
humkum committed May 24, 2024
1 parent bdc7c0a commit 9c8fdb7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,10 @@ public void operationFail(Throwable throwable) {
onExceptionImpl(brokerName, msg, timeoutMillis - cost, request, sendCallback, topicPublishInfo, instance,
retryTimesWhenSendFailed, times, ex, context, true, producer);
} else {
MQClientException ex = new MQClientException("unknow reseaon", throwable);
MQClientException ex = new MQClientException("unknown reason", throwable);
boolean needRetry = !(throwable instanceof RemotingTooMuchRequestException);
onExceptionImpl(brokerName, msg, timeoutMillis - cost, request, sendCallback, topicPublishInfo, instance,
retryTimesWhenSendFailed, times, ex, context, true, producer);
retryTimesWhenSendFailed, times, ex, context, needRetry, producer);
}
}
});
Expand Down

0 comments on commit 9c8fdb7

Please sign in to comment.