conduktor.io ↗

Kafka AddOffsetsToTxn Changelog — Protocol Version History

What is AddOffsetsToTxn?

Enrolls an offset commit in the current transaction for exactly-once consume-transform-produce. If the transaction aborts, both the produced records and the offset commit are rolled back atomically.

VersionKafkaChanges
AddOffsetsToTxnRequest
v02.2
+ TransactionalId string
+ ProducerId int64
+ ProducerEpoch int16
+ GroupId string
v12.2
is the same as version 0.
v22.7
adds the support for new error code PRODUCER_FENCED.
v32.8
~ Flexible encoding enabled FLEXIBLE
enables flexible versions.
v43.8
adds support for new error code TRANSACTION_ABORTABLE (KIP-890).
AddOffsetsToTxnResponse
v02.2
+ ThrottleTimeMs int32
+ ErrorCode int16
v12.2
on quota violation brokers send out responses before throttling.
v22.7
adds the support for new error code PRODUCER_FENCED.
v32.8
~ Flexible encoding enabled FLEXIBLE
enables flexible versions.
v43.8
adds support for new error code TRANSACTION_ABORTABLE (KIP-890).