conduktor.io ↗

Kafka Exception FencedInstanceIdException

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

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

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.FencedInstanceIdException: The broker rejected this static consumer since another consumer with the same group.instance.id has registered with a different member.id.

Diagnostic Commands

# Check group members for the instance ID kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group <group-id> | grep <instance-id> # Search all groups for a specific instance ID kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list | xargs -I{} kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group {} 2>/dev/null | grep <instance-id>

Related

Protocol error: FENCED_INSTANCE_ID (code 82)

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

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