conduktor.io ↗

Kafka Error LEADER_NOT_AVAILABLE

Error code 5 · Retriable Broker

There is no leader for this topic-partition as we are in the middle of a leadership election.

Common Causes

Solutions

Diagnostic Commands

# Check for partitions without a leader kafka-topics.sh --describe --topic <topic> --bootstrap-server localhost:9092 | grep 'Leader: none' # Check for under-replicated partitions kafka-topics.sh --describe --bootstrap-server localhost:9092 --under-replicated-partitions

Related APIs

This error can be returned by: Fetch · ListOffsets · Metadata · Produce

Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.