wbarnha / kafka-python-ng

Fork for Python client for Apache Kafka
https://wbarnha.github.io/kafka-python-ng/
Apache License 2.0
78 stars 11 forks source link

NotEnoughReplicasError and NotEnoughReplicasAfterAppendError should be retriable. #117

Open wbarnha opened 8 months ago

wbarnha commented 8 months ago

According to the kafka protocol doc, the errors NOT_ENOUGH_REPLICAS and NOT_ENOUGH_REPLICAS_AFTER_APPEND, error codes 19 and 20 respectively, should be retriable.

I don't see them as retriable in the code. Is there a reason for that?