conduktor.io ↗

Kafka Exception IllegalGenerationException

org.apache.kafka.common.errors.IllegalGenerationException
Non-retriable Consumer

IllegalGenerationException is a Kafka exception (org.apache.kafka.common.errors.IllegalGenerationException).

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.IllegalGenerationException: Specified group generation id is not valid.

Diagnostic Commands

# Describe consumer group offsets and lag kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group <group> --describe # Look for rebalance events in logs grep -E 'IllegalGeneration|Rebalance|JoinGroup|generation' /var/log/kafka/server.log | tail -30

Related

Protocol error: ILLEGAL_GENERATION (code 22)

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

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