conduktor.io ↗

Kafka TxnOffsetCommit Response Wire Format v1 — Binary Protocol Layout

What is TxnOffsetCommit?

Stages an offset commit as part of a transaction. The offsets aren't visible to other consumers until the transaction commits. If the transaction aborts, the offsets roll back and the consumer will reprocess those records.

Related Errors

COORDINATOR_LOAD_IN_PROGRESS · COORDINATOR_NOT_AVAILABLE · GROUP_AUTHORIZATION_FAILED · ILLEGAL_GENERATION · INVALID_GROUP_ID · OFFSET_METADATA_TOO_LARGE · TOPIC_AUTHORIZATION_FAILED · TRANSACTIONAL_ID_AUTHORIZATION_FAILED · UNKNOWN_TOPIC_OR_PARTITION

Wire Diagram

Response Header
message_size int32 · 4B
correlation_id int32 · 4B
TxnOffsetCommitResponse v1
ThrottleTimeMs int32 · 4B
Topics array
Name string
Partitions array
PartitionIndex int32 · 4B
ErrorCode int16 · 2B

Schema & Example

Schema
{
  "ThrottleTimeMs": int32,
  "Topics": [{
      "Name": string,
      "Partitions": [{
          "PartitionIndex": int32,
          "ErrorCode": int16
      }]
  }]
}
Example
{
  "ThrottleTimeMs": 0,
  "Topics": [{
      "Name": "orders",
      "Partitions": [{
          "PartitionIndex": 3,
          "ErrorCode": 0
      }]
  }]
}