conduktor.io ↗

Kafka Error REPLICA_NOT_AVAILABLE

Error code 9 · Retriable Broker

The replica is not available for the requested topic-partition. Produce/Fetch requests and other requests intended only for the leader or follower return NOT_LEADER_OR_FOLLOWER if the broker is not a replica of the topic-partition.

Common Causes

Solutions

Diagnostic Commands

# Check for under-replicated partitions kafka-topics.sh --describe --bootstrap-server localhost:9092 --under-replicated-partitions # Check replica offset lag and status kafka-log-dirs.sh --bootstrap-server localhost:9092 --broker-list <broker-id> --describe | grep -E 'offsetLag|isFuture'
Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.