conduktor.io ↗

Kafka AddRaftVoter Response Wire Format v1 — Binary Protocol Layout

What is AddRaftVoter?

Expands the KRaft controller quorum by adding a new voter node. The new node must catch up with the leader before participating in elections. Expanding from 3 to 5 voters increases fault tolerance from losing 1 node to losing 2.

Related Errors

DUPLICATE_VOTER · INVALID_VOTER_KEY

Wire Diagram

Response Header · flexible
message_size int32 · 4B
correlation_id int32 · 4B
tagged var
AddRaftVoterResponse v1
ThrottleTimeMs int32 · 4B
ErrorCode int16 · 2B
ErrorMessage? string (compact)
tagged var

Schema & Example

Schema
{
  "ThrottleTimeMs": int32,
  "ErrorCode": int16,
  "ErrorMessage": string?
}
Example
{
  "ThrottleTimeMs": 0,
  "ErrorCode": 0,
  "ErrorMessage": null
}