conduktor.io ↗

Kafka Error NOT_ENOUGH_REPLICAS_AFTER_APPEND

Error code 20 · Retriable Broker

Messages are written to the log, but to fewer in-sync replicas than required.

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 <follower-broker-id> --describe | grep offsetLag

Related APIs

This error can be returned by: EndTxn · InitProducerId · Produce · WriteTxnMarkers

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