conduktor.io ↗

Kafka Error FENCED_LEADER_EPOCH

Error code 74 · Retriable Broker

The leader epoch in the request is older than the epoch on the broker.

Common Causes

Solutions

Diagnostic Commands

# Look for epoch fencing events in logs grep 'FencedLeaderEpoch\|leader.epoch\|LeaderAndIsr' /path/to/kafka/logs/controller.log | tail -30 # Describe topic replicas and ISR status kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic <topic> | grep -E 'Leader|Isr|Replicas'

Related APIs

This error can be returned by: Fetch

Related KIPs

KIP-359

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