conduktor.io ↗

Kafka Exception CoordinatorNotAvailableException

org.apache.kafka.common.errors.CoordinatorNotAvailableException
Retriable Consumer

In the context of the group coordinator, the broker returns this error code for metadata or offset commit requests if the group metadata topic has not been created yet. In the context of the transactional coordinator, this error will be returned if the underlying transactional log is under replicated or if an append to the log times out.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.CoordinatorNotAvailableException: The coordinator is not available.

Diagnostic Commands

# Inspect __consumer_offsets topic health kafka-topics.sh --describe --topic __consumer_offsets --bootstrap-server localhost:9092 # Check which broker is the group coordinator kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group <group> --describe 2>&1 | grep -E 'Coordinator|ERROR'

Related

Protocol error: COORDINATOR_NOT_AVAILABLE (code 15)

Related Consumer exceptions: CommitFailedException · CoordinatorLoadInProgressException · FencedInstanceIdException · FencedMemberEpochException · GroupMaxSizeReachedException · IllegalGenerationException · InvalidGroupIdException · InvalidOffsetException

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