conduktor.io ↗

Kafka Exception NetworkException

org.apache.kafka.common.errors.NetworkException
Retriable Broker

A misc. network-related IOException occurred when making a request. This could be because the client's metadata is out of date and it is making a request to a node that is now dead.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.NetworkException: The server disconnected before a response was received.

Diagnostic Commands

# Look for connection/network errors in logs grep -E 'Disconnected|NetworkException|Connection reset|Broken pipe' /var/log/kafka/server.log | tail -30 # Search logs for related error messages ss -s && netstat -an | grep -c ESTABLISHED

Related

Protocol error: NETWORK_EXCEPTION (code 13)

Related Broker exceptions: CorruptRecordException · FencedLeaderEpochException · LeaderNotAvailableException · NotEnoughReplicasAfterAppendException · NotEnoughReplicasException · NotLeaderOrFollowerException · TimeoutException · UnknownLeaderEpochException

Hitting NetworkException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.