What is AddPartitionsToTxn?
Transactional producers send this before writing to any new partition within a transaction to register it with the coordinator. CONCURRENT_TRANSACTIONS means another producer with the same transactional.id is still active and must complete or time out first.
Wire Diagram
Response Header · flexible
message_size
int32 · 4B
correlation_id
int32 · 4B
tagged
var
AddPartitionsToTxnResponse v3
ThrottleTimeMs
int32 · 4B
tagged
var
Name
string (compact)
tagged
var
PartitionIndex
int32 · 4B
PartitionErrorCode
int16 · 2B
tagged
var
Schema & Example
Schema { "ThrottleTimeMs": int32, "ResultsByTopicV3AndBelow": [{ "Name": string, "ResultsByPartition": [{ "PartitionIndex": int32, "PartitionErrorCode": int16 }] }] }
Example { "ThrottleTimeMs": 0, "ResultsByTopicV3AndBelow": [{ "Name": "orders", "ResultsByPartition": [{ "PartitionIndex": 3, "PartitionErrorCode": 1 }] }] }