conduktor.io ↗

transaction.timeout.ms — Kafka Producer Configuration

The maximum amount of time in milliseconds that a transaction will remain open before the coordinator proactively aborts it. The start of the transaction is set at the time that the first partition is added to it

Description

The maximum amount of time in milliseconds that a transaction will remain open before the coordinator proactively aborts it. The start of the transaction is set at the time that the first partition is added to it. If this value is larger than the transaction.max.timeout.ms setting in the broker, the request will fail with a InvalidTxnTimeoutException error.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.11.060000
Producer1.060000
Producer1.160000
Producer2.060000
Producer2.160000
Producer2.260000
Producer2.360000
Producer2.460000
Producer2.560000
Producer2.660000 (1 minute)
Producer2.760000 (1 minute)
Producer2.860000 (1 minute)
Producer3.060000 (1 minute)
Producer3.160000 (1 minute)
Producer3.260000 (1 minute)
Producer3.360000 (1 minute)
Producer3.460000 (1 minute)
Producer3.560000 (1 minute)
Producer3.660000 (1 minute)
Producer3.760000 (1 minute)
Producer3.860000 (1 minute)
Producer3.960000 (1 minute)
Producer4.060000 (1 minute)
Producer4.160000 (1 minute)
Producer4.260000 (1 minute)
Producer4.360000 (1 minute)
Producer4.460000 (1 minute)

Tuning Recommendation

Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.

ProfileProposalRationale and tradeoff
producer / durability60000Defines the producer transaction timeout requested from the coordinator; it must not exceed the broker maximum.

Tradeoff: Long-running transactions may be aborted when the timeout expires. Excessive values can prolong the visibility delay for read_committed consumers.

Reference · 2026-10-27

Related Configs

transactional.id · delivery.timeout.ms

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.