conduktor.io ↗

Kafka RemoveRaftVoter Request Wire Format v0 — Binary Protocol Layout

What is RemoveRaftVoter?

Shrinks the KRaft controller quorum, typically when decommissioning a controller node. The quorum must have consensus to remove a voter. You cannot remove a voter if doing so would make the quorum unable to reach majority.

Related Errors

VOTER_NOT_FOUND

Wire Diagram

Request Header · flexible
message_size int32 · 4B
api_key int16 · 2B
api_version int16 · 2B
correlation_id int32 · 4B
client_id string (compact)
tagged var
RemoveRaftVoterRequest v0
ClusterId? string (compact)
VoterId int32 · 4B
VoterDirectoryId uuid · 16B
tagged var

Schema & Example

Schema
{
  "ClusterId": string?,
  "VoterId": int32,
  "VoterDirectoryId": uuid
}
Example
{
  "ClusterId": "dQw4w9WgXcQ",
  "VoterId": 1,
  "VoterDirectoryId": "550e8400-e29b-41d4-a716-446655440000"
}