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.
Wire Diagram
Response Header · flexible
message_size
int32 · 4B
correlation_id
int32 · 4B
tagged
var
AddOffsetsToTxnResponse v4
ThrottleTimeMs
int32 · 4B
ErrorCode
int16 · 2B
tagged
var
Schema & Example
Schema { "ThrottleTimeMs": int32, "ErrorCode": int16 }
Example { "ThrottleTimeMs": 0, "ErrorCode": 0 }