NotEnoughReplicasError
The error a broker returns when an acks=all write cannot be accepted because fewer in-sync replicas exist than min.insync.replicas requires.
In more detail
The write is refused rather than stored with weaker durability than you asked for. The producer may retry until enough replicas are back in sync.
Related terms
- min.insync.replicas — The topic or broker setting for the smallest number of in-sync replicas that must confirm an acks=all write for it to succeed.
- in-sync replica set — The replicas of a partition that are currently caught up with the leader, abbreviated ISR.
- acks — The producer setting that decides how many brokers must confirm a record before the send counts as successful: 0, 1 or all.
- KafkaError — The base class of the exceptions kafka-python raises when a Kafka operation fails.
Taught in
- Acknowledged Is Not Always Safe — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Alert That Came An Hour Late — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Brokers Down — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Acknowledgements: What Acks Means For Durability — Apache Kafka & Event Streaming
- Losing A Broker — Apache Kafka & Event Streaming