Skip to content

Commit

Permalink
[ISSUE #919] Add transaction message retry attempt for C# client Prod…
Browse files Browse the repository at this point in the history
…ucer (#921)
  • Loading branch information
tsunghanjacktsai authored Jan 22, 2025
1 parent 1f49ca5 commit 214761b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions csharp/rocketmq-client-csharp/Producer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@ private async Task<SendReceipt> Send0(PublishingMessage message, List<MessageQue
throw;
}

if (MessageType.Transaction == message.MessageType)
{
Logger.LogError(e, "Failed to send transaction message, run out of attempt times, " +
$"topic={message.Topic}, maxAttempt=1, attempt={attempt}, " +
$"endpoints={endpoints}, messageId={message.MessageId}, clientId={ClientId}");
throw;
}

if (!(exception is TooManyRequestsException))
{
// Retry immediately if the request is not throttled.
Expand Down

0 comments on commit 214761b

Please sign in to comment.