conduktor.io ↗

Kafka AddOffsetsToTxn Response Wire Format v1 — Binary Protocol Layout

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.

Related Errors

CONCURRENT_TRANSACTIONS · COORDINATOR_NOT_AVAILABLE · GROUP_AUTHORIZATION_FAILED · INVALID_PRODUCER_EPOCH · INVALID_PRODUCER_ID_MAPPING · INVALID_REQUEST · INVALID_TRANSACTION_TIMEOUT · INVALID_TXN_STATE · NOT_COORDINATOR · PRODUCER_FENCED · TRANSACTIONAL_ID_AUTHORIZATION_FAILED · TRANSACTIONAL_ID_NOT_FOUND · TRANSACTION_ABORTABLE · UNSUPPORTED_VERSION

Wire Diagram

Response Header
message_size int32 · 4B
correlation_id int32 · 4B
AddOffsetsToTxnResponse v1
ThrottleTimeMs int32 · 4B
ErrorCode int16 · 2B

Schema & Example

Schema
{
  "ThrottleTimeMs": int32,
  "ErrorCode": int16
}
Example
{
  "ThrottleTimeMs": 0,
  "ErrorCode": 0
}