conduktor.io ↗

Kafka Error STALE_CONTROLLER_EPOCH

Error code 11 · Non-retriable Broker

The controller moved to another broker.

Common Causes

Solutions

Diagnostic Commands

# Look for controller election events in logs grep -E 'Elected as controller|Resigned as controller|StaleControllerEpoch' /var/log/kafka/server.log | tail -20 # Search logs for related error messages echo mntr | nc <zookeeper-host> 2181 | grep -E 'zk_outstanding|zk_avg_latency|zk_num_alive'
Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.