conduktor.io ↗

Kafka Error ILLEGAL_GENERATION

Error code 22 · Non-retriable Consumer

Specified group generation id is not valid.

Common Causes

Solutions

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 APIs

This error can be returned by: TxnOffsetCommit

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