conduktor.io ↗

Kafka Exception RebalanceInProgressException

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

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

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.RebalanceInProgressException: The group is rebalancing, so a rejoin is needed.

Diagnostic Commands

# Check consumer group state and members kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group <group-id> | grep -E 'STATE|CONSUMER-ID|HOST' # Look for rebalance events in logs grep 'Attempt to heartbeat failed\|poll interval exceeded\|rebalance' /var/log/kafka-consumer.log | tail -50

Related

Protocol error: REBALANCE_IN_PROGRESS (code 27)

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

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