KIP-1351 — Add --cancel-all to kafka-reassign-partitions
Discussion Admin
Adds a --cancel-all action to kafka-reassign-partitions.sh that lists in-flight reassignments via listPartitionReassignments and cancels every one with non-empty adding/removing replica sets through alterPartitionReassignments with replicas = null, leaving --cancel unchanged. Cancelling all reassignments today requires reconstructing the original JSON plan or scripting the Admin calls by hand, which is slow and error-prone during an incident when the plan file is missing or stale.
Details
| Author | Manan Gupta |
| Status | Discussion |
| JIRA | KAFKA-20614 |
| Wiki | View on Apache Wiki |
| Created | 2026-05-26 |
| Last Modified | 2026-05-26 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.