Skip to main content

Module vote

Module vote 

Source
Expand description

KIP-595 Vote wire and membership admission decisions.

Structs§

VoteMembership
The cluster and voter-set memberships one Vote request needs.
VoteTarget
Whom one Vote request is addressed to, against this node.

Enums§

VoteAdmissionDecision
Admission shared by binding votes and pre-votes before epoch/log checks.
VoteEncodeDecision
Whether unsigned consensus fields fit Kafka’s signed Vote wire fields.
VoteWireDecision
Whether the signed Vote fields can be converted without aliasing a Kafka sentinel to a real node or epoch.

Functions§

vote_admission_decision
Classify exact recipient and membership admission. The target alone decides IgnoreWrongTarget; for the exact target, the memberships decide between Deny and Consider.
vote_encode_decision
Reject values that would otherwise be clamped and alias another identity or epoch when encoded as Kafka int32 fields.
vote_wire_decision
Validate the signed identity and epoch fields before conversion to the unsigned consensus types. The one ensures pins both variants: Accept exactly when vote_fields_nonnegative holds.