Kafka Troubleshooting Toolkit
Use this Kafka troubleshooting toolkit to diagnose consumer lag, under-replicated and offline partitions, rebalance storms, broker and controller failures, and KRaft/ZooKeeper quorum loss.
Paste your error and get a triage plan.
Paste a log line, CLI error, stack trace, service failure, or config snippet and get a structured troubleshooting plan. Your snippet is carried straight into the AI Incident Response Assistant with Kafka context prefilled.
Do not paste secrets, tokens, private keys, passwords, or customer data. Your snippet stays in your browser until you open the assistant.
Top 25 Kafka Errors and Failure Modes
The production failures engineers hit most — each links to a full cause → fix → prevention guide.
Consumer lag growing
Consumers fall behind producers because processing throughput cannot keep pace with the incoming partition offset rate.
Under-replicated partitions / ISR shrink
Follower replicas drop out of the in-sync replica set when they cannot fetch fast enough from the partition leader.
Offline partitions
A partition has no available leader, so producers and consumers cannot read from or write to it until a broker recovers.
LeaderNotAvailableException
Clients hit a partition whose leader is being elected or has just failed, leaving the leader temporarily unknown.
NotLeaderOrFollowerException
A client sends a request to a broker that is no longer the leader or follower for the target partition after a metadata change.
Broker may not be available
Clients cannot reach a broker that is down, unregistered, or unreachable, causing metadata refresh and request failures.
Replica lagging
A follower replica trails the leader's log end offset and risks being removed from the ISR under sustained load.
Leader election failed / unclean election
Controller leader election stalls or promotes an out-of-sync replica, risking data loss when no in-sync leader is available.
RebalanceInProgressException (rebalance storms)
Consumer group membership churns repeatedly, triggering back-to-back rebalances that stall consumption across all members.
CommitFailedException
An offset commit is rejected because the consumer was evicted from the group after exceeding the max poll interval.
RecordTooLargeException
A produced message exceeds the broker or topic max message size limit and is rejected before it can be appended.
Producer TimeoutException on send
A produce request is not acknowledged within delivery.timeout.ms, often due to broker load, network latency, or ISR issues.
Log directory failure (disk full)
A broker marks a log directory offline after an I/O error or full disk, taking its hosted partitions out of service.
Log retention / cleanup failed
Retention or compaction cannot delete or compact segments, causing disk usage to grow unbounded on the broker.
FencedInstanceIdException
A transactional or static-membership producer or consumer is fenced because another instance claimed the same identity.
OutOfOrderSequenceException
The broker detects a gap in the idempotent producer's sequence numbers, indicating lost or reordered in-flight batches.
NetworkException
A transient network fault interrupts a client-broker connection, forcing a retry or metadata refresh on the request.
Controller moved to another broker
The active controller role failed over to a different broker, briefly disrupting metadata and partition-state operations.
Metadata quorum unavailable (KRaft)
The KRaft controller quorum lost majority, so no metadata updates or leader elections can be committed cluster-wide.
ZooKeeper session expired
A broker's ZooKeeper session times out, causing it to deregister and drop leadership of its partitions until it reconnects.
Coordinator unavailable (__consumer_offsets)
The group or transaction coordinator hosting the offsets partition is unreachable, blocking commits and group joins.
ReplicaFetcherThread failed
A follower's replica fetcher thread dies or errors, halting replication for its partitions and shrinking the ISR.
Fetch request timed out
A consumer or follower fetch request exceeds its timeout, signaling high broker latency or an overloaded partition leader.
NoBrokersAvailable / connection refused
A client cannot connect to any bootstrap broker, usually due to wrong addresses, listeners, or all brokers being down.
SASL authentication failed
A client is rejected during the SASL handshake due to bad credentials, mechanism mismatch, or misconfigured JAAS.
Validate your config before you redeploy
Catch the structural mistakes that cause outages — 100% in your browser, nothing uploaded.
Kafka Troubleshooting Hubs
Fix a whole class of Kafka errors at once — each hub gathers the related guides for one failure class.
Kafka Broker, KRaft & Cluster Errors
Fix Kafka broker and cluster failures — KafkaServer startup errors, controller not available, inconsistent cluster ID, partition offline, log/storage and KRaft/ZooKeeper metadata errors — with exact commands.
Open hubKafka Producer, Consumer & Client Errors
Fix Kafka client failures — producer timeouts, commit-failed and rebalance-in-progress, offset out of range, serialization and record-too-large errors, coordinator and auth failures — with exact fixes.
Open hubBest Kafka Prompts
Turn symptoms, logs, and config into a structured plan with prompts tuned for Kafka.
Kafka consumer rebalance storm triage
Stop repeated rebalances and stabilize the group
Use this promptKafka topic design and partitioning strategy
Choose partition count and replication factor
Use this promptKafka producer throughput and latency tuning
Tune batching, acks, and delivery timeouts
Use this promptKafka cluster sizing and capacity planning
Size brokers, disk, and partitions for load
Use this promptDownload the Kafka Troubleshooting Runbook Pack
Checklists for brokers, partitions, and consumers that fall behind or drop out.
- Consumer lag & rebalance triage
- Under-replicated / offline partitions
- Broker & controller health
- KRaft / ZooKeeper quorum
- Produce/fetch latency & retention
All Kafka Troubleshooting Guides
Grouped by failure-mode type — each guide covers cause, fix, validation, and prevention.