What is UpdateRaftVoter?
Updates a KRaft controller node's listener endpoints in the quorum configuration after it migrates to a new host. Without this, other voters keep trying to reach the old address, which can cause the quorum to lose majority if the unreachable node is a voter.
Wire Diagram
Response Header · flexible
message_size
int32 · 4B
correlation_id
int32 · 4B
tagged
var
UpdateRaftVoterResponse v0
ThrottleTimeMs
int32 · 4B
ErrorCode
int16 · 2B
tagged
var
LeaderId
int32 · 4B
LeaderEpoch
int32 · 4B
Host
string (compact)
Port
int32 · 4B
tagged
var
Schema & Example
Schema { "ThrottleTimeMs": int32, "ErrorCode": int16, "CurrentLeader": { "LeaderId": int32, "LeaderEpoch": int32, "Host": string, "Port": int32 } }
Example { "ThrottleTimeMs": 0, "ErrorCode": 0, "CurrentLeader": { "LeaderId": 1, "LeaderEpoch": 17, "Host": "broker-1.kafka.local", "Port": 9092 } }