conduktor.io ↗

Kafka Exception NotEnoughReplicasException

org.apache.kafka.common.errors.NotEnoughReplicasException
Retriable Broker

Number of insync replicas for the partition is lower than min.insync.replicas

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.NotEnoughReplicasException: Messages are rejected since there are fewer in-sync replicas than required.

Diagnostic Commands

# Check for under-replicated partitions kafka-topics.sh --describe --bootstrap-server localhost:9092 --under-replicated-partitions # Check for unavailable partitions kafka-topics.sh --describe --bootstrap-server localhost:9092 --unavailable-partitions

Related

Protocol error: NOT_ENOUGH_REPLICAS (code 19)

Related Broker exceptions: CorruptRecordException · FencedLeaderEpochException · LeaderNotAvailableException · NetworkException · NotEnoughReplicasAfterAppendException · NotLeaderOrFollowerException · TimeoutException · UnknownLeaderEpochException

Hitting NotEnoughReplicasException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.