conduktor.io ↗

Kafka Error NOT_CONTROLLER

Error code 41 · Retriable Broker

This is not the correct controller for this cluster.

Common Causes

Solutions

Diagnostic Commands

# Check controller or quorum status kafka-metadata-quorum.sh --bootstrap-server localhost:9092 describe --status 2>/dev/null || kafka-broker-api-versions.sh --bootstrap-server localhost:9092 | head -5 # Look for controller election events in logs grep 'NOT_CONTROLLER\|ResignedFrom\|Resigning\|new controller' /var/log/kafka/server.log | tail -20

Related APIs

This error can be returned by: AlterConfigs · CreatePartitions · CreateTopics · DeleteTopics · ElectLeaders · UpdateFeatures

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