conduktor.io ↗

KIP-996 — Pre-Vote

Discussion Kafka 4.0 KRaft

Implements Pre-Vote in KRaft: a partitioned controller first canvasses the cluster to check whether it would win a majority vote before incrementing its epoch and sending a real VoteRequest. Without Pre-Vote, a follower partitioned from the leader continuously increments its epoch and sends disruptive VoteRequests upon reconnection, forcing unnecessary leader elections and causing flip-flopping leadership in certain network partition scenarios.

Protocol Impact

Vote

Details

AuthorAlyssa Huang
StatusDiscussion
Kafka Version4.0
JIRAKAFKA-16164
WikiView on Apache Wiki
Created2023-10-13
Last Modified2025-01-02
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.