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
Details
| Author | David Jacot |
| Status | Accepted |
| Kafka Version | 2.6 |
| JIRA | KAFKA-9539 |
| Wiki | View on Apache Wiki |
| Created | 2020-02-11 |
| Last Modified | 2020-04-30 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.