conduktor.io ↗

KIP-570 — Add leader epoch in StopReplicaRequest

Accepted Kafka 2.6 ProtocolBroker

Adds a leader epoch field to `StopReplicaRequest` so brokers can fence out-of-order or stale stop-replica commands that arrive after a newer leader epoch has been established. Without an epoch check, a delayed `StopReplicaRequest` from a previous controller term could incorrectly stop a replica that is legitimately serving a newer leader, causing data unavailability.

Protocol Impact

StopReplica · LeaderAndIsr

Details

AuthorDavid Jacot
StatusAccepted
Kafka Version2.6
JIRAKAFKA-9539
WikiView on Apache Wiki
Created2020-02-11
Last Modified2020-04-30
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.