Kafka NetworkException: The Server Disconnected — How to Fix It
Fix org.apache.kafka.common.errors.NetworkException: the server disconnected before a response was received. Root causes, idempotent retries, LB timeouts.
Fix org.apache.kafka.common.errors.NetworkException: the server disconnected before a response was received. Root causes, idempotent retries, LB timeouts.
Kafka consumer stuck logging 'Marking the coordinator dead' / 'Group coordinator is unavailable or invalid, will attempt rediscovery'. Here's the real cause and the fix.
Kafka ListenerNotFoundException and 'leader brokers without a matching listener' explained: why the leader lacks the listener, how to reproduce, and the fix.
Kafka LEADER_NOT_AVAILABLE floods your producer logs the moment you write to a fresh topic. Here's the exact cause, the reproduction, and the real fix.
Fix org.apache.kafka.common.errors.KafkaStorageException and 'No space left on device' broker shutdowns — recovery runbook, retention math, disk sizing.
InvalidTxnStateException means your producer called a transactional API in the wrong state. Here's the state machine, the exact triggers, and the fix.
Kafka InvalidTopicException — 'Topic name is illegal' from bad characters, 249-char limits, or '.'/'_' collisions. The exact rules, root cause, and the fix.
Fixing InvalidStateStoreException: "the state store may have migrated to another instance" in Kafka Streams — root causes, retry logic, and the right IQ design.
Fix Kafka's InvalidReplicationFactorException — "Replication factor: 3 larger than available brokers: 1" — in Docker and single-broker dev setups fast.
Hitting InvalidGroupIdException: "you must provide a valid group.id"? Why subscribe() and offset commits require a group.id in Kafka, and the exact fix.