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.
| Version | Kafka | Changes |
|---|---|---|
| AddRaftVoterRequest | ||
| v0 | 3.9 | + ClusterId string+ TimeoutMs int32+ VoterId int32+ VoterDirectoryId uuid+ Listeners []Listener+ Name string+ Host string+ Port uint16~ Flexible encoding enabled FLEXIBLE |
| v1 | 4.2 | + AckWhenCommitted booladds the AckWhenCommitted field. |
| AddRaftVoterResponse | ||
| v0 | 3.9 | + ThrottleTimeMs int32+ ErrorCode int16+ ErrorMessage string~ Flexible encoding enabled FLEXIBLE |
| v1 | 4.2 | is the same as version 0 |