KIP-704 — Send a hint to the partition leader to recover the partition
Accepted Kafka 3.2 Broker
Adds a new `AlterPartitionReassignments`-style hint mechanism allowing the controller to notify a partition leader elected via unclean leader election that it should fetch committed records from surviving replicas before serving reads. Unclean leader election can cause data loss and state inconsistency with transaction/group coordinators because the new leader may delete records committed by previous leaders; this hint allows recovery without user intervention.
Protocol Impact
AlterPartition v1 · LeaderAndIsr
Details
| Author | Raman Verma |
| Status | Accepted |
| Kafka Version | 3.2 |
| JIRA | KAFKA-13587 |
| Wiki | View on Apache Wiki |
| Created | 2021-01-11 |
| Last Modified | 2022-03-23 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.