Skip to content

Commit 7cb2aed

Browse files
committed
Add more default retryable error codes for Kakfa consumption exceptions. #1587
1 parent d2f25eb commit 7cb2aed

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/DotNetCore.CAP.Kafka/CAP.KafkaOptions.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@ public KafkaOptions()
2626
MainConfig = new Dictionary<string, string>();
2727
RetriableErrorCodes = new List<ErrorCode>
2828
{
29-
ErrorCode.GroupLoadInProgress
29+
ErrorCode.GroupLoadInProgress,
30+
ErrorCode.Local_Retry,
31+
ErrorCode.RequestTimedOut,
32+
ErrorCode.LeaderNotAvailable,
33+
ErrorCode.NotLeaderForPartition,
34+
ErrorCode.RebalanceInProgress,
35+
ErrorCode.NotCoordinatorForGroup,
36+
ErrorCode.NetworkException,
37+
ErrorCode.GroupCoordinatorNotAvailable,
38+
ErrorCode.Local_MaxPollExceeded
3039
};
3140
}
3241

0 commit comments

Comments
 (0)