Expand description
The KIP-853 request checks that AddRaftVoter, RemoveRaftVoter and
UpdateRaftVoter share on the controller listener and on the broker
listener, with Kafka’s codes, order and messages.
The order is that of KafkaRaftClient.handleAddVoterRequest,
handleRemoveVoterRequest and handleUpdateVoterRequest: the cluster id,
then the leader, then the voter key, then the endpoints. Each function
answers None when the request passes, so the caller goes on to the
reconfiguration itself.
Structs§
- Listener
Address - A listener as a request names it on the wire, borrowed from the request.
Enums§
- Voter
Operation - The voter operation a request asked for, which its refusal names as Kafka’s
AddVoterHandlerandRemoveVoterHandlerdo.
Constants§
- DUPLICATE_
VOTER - Kafka’s
DUPLICATE_VOTER. - FENCED_
LEADER_ EPOCH - Kafka’s
FENCED_LEADER_EPOCH. - INCONSISTENT_
CLUSTER_ ID - Kafka’s
INCONSISTENT_CLUSTER_ID. - INVALID_
REQUEST - Kafka’s
INVALID_REQUEST. - NOT_
LEADER_ OR_ FOLLOWER - Kafka’s
NOT_LEADER_OR_FOLLOWER. - REQUEST_
TIMED_ OUT - Kafka’s
REQUEST_TIMED_OUT. - UNKNOWN_
LEADER_ EPOCH - Kafka’s
UNKNOWN_LEADER_EPOCH. - UNKNOWN_
SERVER_ ERROR - Kafka’s
UNKNOWN_SERVER_ERROR. - UNSUPPORTED_
VERSION - Kafka’s
UNSUPPORTED_VERSION. - VOTER_
NOT_ FOUND - Kafka’s
VOTER_NOT_FOUND.
Functions§
- add_
voter_ refusal - The refusal of an
AddRaftVoterrequest before the candidate probe, asKafkaRaftClient.handleAddVoterRequestorders it. - candidate_
kraft_ version_ refusal - The refusal of a candidate whose
kraft.versionrange does not cover the finalized version:INVALID_REQUEST, asAddVoterHandleranswers it. - candidate_
unavailable_ refusal - The refusal of a candidate that could not be asked for its
ApiVersions:REQUEST_TIMED_OUT, asAddVoterHandleranswers it. - leader_
listener_ name - The name of the leader’s controller listener: Kafka’s
channel.listenerName()on the leader, which a new or updated voter must advertise. It isNonewhen this node does not know its own endpoints. - reconfiguration_
refusal - The code and message of a reconfiguration’s outcome, for the voter
(voter_id, directory_id)the request named. - remove_
voter_ refusal - The refusal of a
RemoveRaftVoterrequest before the reconfiguration, asKafkaRaftClient.handleRemoveVoterRequestorders it. - replica_
key - Kafka’s
ReplicaKey.toString, with the directory id in Kafka’s base64Uuidform. - update_
voter_ current_ leader UpdateRaftVoterResponse.CurrentLeader, asRaftUtil.updateVoterResponsefills it in every answer.- update_
voter_ refusal - The refusal code of an
UpdateRaftVoterrequest before the reconfiguration, asKafkaRaftClient.handleUpdateVoterRequestandUpdateVoterHandlerorder it. The response carries no message. - valid_
wire_ listeners - A listener set is usable when every entry is named, hosted and on a real port, no name repeats, and there is at least one.
Type Aliases§
- Refusal
- An error code and the message beside it.