conduktor.io ↗

Kafka Exception TimeoutException

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

Indicates that a request timed out.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.TimeoutException: The request timed out.

Diagnostic Commands

# Check for under-replicated partitions kafka-topics.sh --describe --bootstrap-server localhost:9092 --under-replicated-partitions # Check request handler utilization in logs grep -E 'RequestHandlerAvgIdlePercent|NetworkProcessorAvgIdlePercent' /var/log/kafka/server.log | tail -20

Related

Protocol error: REQUEST_TIMED_OUT (code 7)

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

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