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.
Wire Diagram
Response Header v1 · flexible
message_size
int32 · 4B
correlation_id
int32 · 4B
tagged
var
TxnOffsetCommitResponse v3
ThrottleTimeMs
int32 · 4B
tagged
var
Name
string (compact)
tagged
var
PartitionIndex
int32 · 4B
ErrorCode
int16 · 2B
tagged
var
Schema & Example
Schema { "ThrottleTimeMs": int32, "Topics": [{ "Name": string, "Partitions": [{ "PartitionIndex": int32, "ErrorCode": int16 }] }] }
Illustrative values (not encoded bytes) { "ThrottleTimeMs": 0, "Topics": [{ "Name": "orders", "Partitions": [{ "PartitionIndex": 3, "ErrorCode": 0 }] }] }