KafkaTimeoutError
The kafka-python exception raised when an operation, such as waiting for a send to be acknowledged, takes longer than its time limit.
In more detail
In the broker-loss lesson it shows up when too few replicas remain for an acks=all write, so the request never completes within request_timeout_ms or max_block_ms. A timeout does not prove the write failed, so a retry may create a duplicate unless the producer is idempotent.
Related terms
- KafkaError — The base class of the exceptions kafka-python raises when a Kafka operation fails.
- timeout — A limit on how long a caller waits for an answer before giving up.
- 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.
Taught in
- Losing A Broker — Apache Kafka & Event Streaming