Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

Kafka Producer Timeouts

The exception message identifies which timeout boundary expired. Capture it in full with producer metrics and the affected topic-partition.

Message or metricInvestigate
Waiting for metadataDNS, listeners, topic existence, leader, ACLs
Failed to allocate memory within max.block.msBuffer exhaustion or unavailable metadata
Expiring records after delivery.timeout.msRequest latency, retries, ISR, throttling
Request timeoutBroker queue/processing, replication, network
High bufferpool-wait-*Producer throughput exceeds successful delivery
Terminal window
kafka-cluster.sh api-versions --bootstrap-server kafka:9092
kafka-topics.sh --bootstrap-server kafka:9092 \
--describe --topic orders
kafka-topics.sh --bootstrap-server kafka:9092 \
--describe --under-min-isr-partitions
kafka-configs.sh --bootstrap-server kafka:9092 \
--entity-type topics --entity-name orders --describe

Check client request/error/retry/throttle latency, buffer availability, broker request phases, ISR, leader changes, quotas, and record size.

When a response is lost, the application may not know whether Kafka appended the record. Idempotent producers safely deduplicate retries within the producer session. Non-idempotent applications need a stable event ID and downstream deduplication.

  • Repair connectivity, advertised endpoints, authorization, leader, or replica health.
  • Remove a proven quota or capacity bottleneck.
  • Align record-size limits across producer, topic/broker, replication, and consumer paths.
  • Adjust delivery.timeout.ms only after measuring the legitimate delivery budget; it must be at least request.timeout.ms + linger.ms.

Do not disable idempotence or reduce acknowledgements to hide an infrastructure failure without accepting the semantic and durability change.

Confirm records are acknowledged within the normal percentile, error/retry/buffer-wait rates recover, ISR is healthy, and application IDs prove that retries did not create business duplicates.