KafkaError
The base class of the exceptions kafka-python raises when a Kafka operation fails.
In more detail
Catching KafkaError catches every client error, and printing the exception's class name tells you which specific one occurred, such as NotEnoughReplicasError. Specific errors carry a flag that says whether retrying might succeed.
Related terms
- exception — An error object a program raises to stop normal flow and report that something went wrong.
- 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.
- KafkaTimeoutError — The kafka-python exception raised when an operation, such as waiting for a send to be acknowledged, takes longer than its time limit.
Taught in
- Acknowledged Is Not Always Safe — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Copies Of One Service — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Too Slow Between Two Polls — 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