Skip to content

Commit

Permalink
Add more default retryable error codes for Kakfa consumption exceptio…
Browse files Browse the repository at this point in the history
…ns. #1587
  • Loading branch information
yang-xiaodong committed Oct 9, 2024
1 parent d2f25eb commit 7cb2aed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/DotNetCore.CAP.Kafka/CAP.KafkaOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ public KafkaOptions()
MainConfig = new Dictionary<string, string>();
RetriableErrorCodes = new List<ErrorCode>
{
ErrorCode.GroupLoadInProgress
ErrorCode.GroupLoadInProgress,
ErrorCode.Local_Retry,
ErrorCode.RequestTimedOut,
ErrorCode.LeaderNotAvailable,
ErrorCode.NotLeaderForPartition,
ErrorCode.RebalanceInProgress,
ErrorCode.NotCoordinatorForGroup,
ErrorCode.NetworkException,
ErrorCode.GroupCoordinatorNotAvailable,
ErrorCode.Local_MaxPollExceeded
};
}

Expand Down

0 comments on commit 7cb2aed

Please sign in to comment.