kafka
kafka copied to clipboard
KAFKA-19400: Update AddRaftVoterRequest RPC to version 1
Add the ackWhenCommitted boolean field to the AddRaftVoterRequest RPC, and bump the RPC's version to 1.
- The default value of
ackWhenCommittedistrue, and in this case the leader will return a response after committing theVotersRecordgenerated by the RPC. - If
ackWhenCommitted == false, the leader will return a response after writing theVotersRecordto its own local log. - Add unit tests in
KafkaRaftClientReconfigTest