KIP-1269 — Configurable number of batches to retain in broker
Discussion BrokerProducer
Introduces a configurable broker-side limit on the number of producer batch sequence numbers retained for idempotent deduplication, replacing the hardcoded constant ProducerStateEntry#NUM_BATCHES_TO_RETAIN (currently 5). This hardcoded value forces max.in.flight.requests.per.connection to be ≤5 for idempotent producers, artificially limiting producer throughput.
Protocol Impact
Details
| Author | PoAn Yang |
| Status | Discussion |
| JIRA | KAFKA-17967 |
| Wiki | View on Apache Wiki |
| Created | 2026-01-08 |
| Last Modified | 2026-03-20 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.