Skip to main content

voter_reconfiguration_decision

Function voter_reconfiguration_decision 

Source
pub fn voter_reconfiguration_decision(
    leadership: ReconfigurationLeadership,
    voters: CurrentVoterSet,
    request: VoterChangeRequest,
    target: TargetVoter,
) -> VoterReconfigurationDecision
Expand description

Admit one fresh KIP-853 operation and construct its exact result shape.

The result is exactly the first rejection of voter_reconfiguration_rejection, which follows the precedence of Kafka’s handlers, and otherwise an admission with the plan admitted_plan describes. Every admitted change satisfies may_reconfigure.