Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make NotEnoughReplicasError/NotEnoughReplicasAfterAppendError retriable #1722

Merged
merged 1 commit into from
Mar 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kafka/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ class NotEnoughReplicasError(BrokerResponseError):
description = ('Returned from a produce request when the number of in-sync'
' replicas is lower than the configured minimum and'
' requiredAcks is -1.')
retriable = True


class NotEnoughReplicasAfterAppendError(BrokerResponseError):
Expand All @@ -276,6 +277,7 @@ class NotEnoughReplicasAfterAppendError(BrokerResponseError):
description = ('Returned from a produce request when the message was'
' written to the log, but with fewer in-sync replicas than'
' required.')
retriable = True


class InvalidRequiredAcksError(BrokerResponseError):
Expand Down