KIP-1228 — Add Transaction Version to WriteTxnMarkersRequest
Accepted Kafka 4.2 TransactionsProtocol
Adds a transactionVersion field to WriteTxnMarkersRequest so that partition leaders can validate Transaction Version 2 (TV2) end markers by requiring producerEpoch > currentEpoch instead of accepting equality. Without this, leaders could not distinguish late/duplicate TV1 markers from active TV2 transaction markers, creating a correctness gap in exactly-once semantics even after KIP-890 introduced epoch-bump semantics.
Protocol Impact
WriteTxnMarkers v2 · ApiVersions · EndTxn
Details
| Author | Ritika Reddy |
| Status | Accepted |
| Kafka Version | 4.2 |
| JIRA | KAFKA-19446 |
| Wiki | View on Apache Wiki |
| Created | 2025-10-13 |
| Last Modified | 2025-10-30 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.