conduktor.io ↗

Kafka Exception NoOffsetForPartitionException

org.apache.kafka.clients.consumer.NoOffsetForPartitionException
Non-retriable Consumer

Indicates that there is no stored offset for a partition and no defined offset reset policy.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.clients.consumer.NoOffsetForPartitionException: Undefined offset with no reset policy for partitions: [orders-0] at org.apache.kafka.clients.consumer.internals.SubscriptionState.resetInitializingPositions(SubscriptionState.java:716)

Diagnostic Commands

# Check whether the group has committed offsets kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group <group> --describe

Related

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

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