conduktor.io ↗

Kafka Error NEW_LEADER_ELECTED

Error code 108 · Non-retriable Broker

The AlterPartition request successfully updated the partition state but the leader has changed.

Common Causes

Solutions

Diagnostic Commands

# Check KRaft metadata quorum status kafka-metadata-quorum.sh --bootstrap-server localhost:9092 --command-config admin.properties describe --status # Look for leader election events in logs grep 'NEW_LEADER_ELECTED\|AlterPartition\|leader election' /var/log/kafka/server.log | tail -100

Related APIs

This error can be returned by: AlterPartition

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