---
title: "KIP-455 explained: the partition reassignment API"
description: "KIP-455 in plain words: how Kafka moves partition replicas through an admin API instead of ZooKeeper, with incremental moves and cancellation. Tools and status."
url: https://monedula.dev/kafka/kips/kip-455/
---

# KIP-455: an admin API for moving partitions

Cluster and operations · Shipped · since Kafka 2.4 · status checked November 2026.

KIP-455 gave Kafka a proper API for moving partition replicas between brokers. Instead of writing a JSON plan into ZooKeeper, a tool asks the controller through the Admin API to reassign, list or cancel moves, and new moves can be added while others are still running. kafka-reassign-partitions.sh uses it.

## At a glance

- Proposal: KIP-455, Create an Administrative API for Replica Reassignment
- Status: Shipped. API in Kafka 2.4 (2019); tool changes, including --cancel, in 2.5.
- Area: Cluster and operations
- Proposal page: [KIP-455 on the Apache Kafka wiki](https://cwiki.apache.org/confluence/display/KAFKA/KIP-455%3A+Create+an+Administrative+API+for+Replica+Reassignment)

## Why it was needed

Reassignment used to work by writing a znode in ZooKeeper that the controller watched. Only one batch of moves could run at a time, a running move could not be cancelled cleanly, and any tool doing it needed direct access to ZooKeeper, which got in the way of removing ZooKeeper altogether.

## What it changes

The Admin API gained alterPartitionReassignments, to set a target replica list for a partition or cancel its move, and listPartitionReassignments, which shows the replicas being added and removed. The controller adds the new replicas, waits for them to join the ISR and then drops the old ones. Cancelling returns the partition to its original replicas.

## How to use it

- Run kafka-reassign-partitions.sh --bootstrap-server with --generate, --execute and --verify; add --throttle to limit the bandwidth (KIP-73).
- Use --cancel to stop a running reassignment, and --additional to start more moves or change the throttle while one is running.

## Where it stands

The API shipped in Kafka 2.4 and the tool changes in 2.5, which also deprecated the --zookeeper option. Since Kafka 4.0 the cluster runs only on KRaft and this API is the only way to reassign.

## What comes next

Stable. Kafka 4.3 added cordoning of brokers and log directories (KIP-1066), which keeps new replicas off a broker you are about to drain.

## See it in the simulator

- [kafka-reassign-partitions: change a replica set by hand](https://monedula.dev/kafka-simulator/scenarios/partition-reassignment-by-hand/) (Partition reassignment by hand), step 3: Reassign - leader dropped, new replica outside the ISR. Hand-reassign to broker-2/4/3. The simulator drops leader broker-1 at once, so leadership shifts to in-sync broker-2 (leader epoch bumps) and broker-4 joins at offset 0 OUTSIDE the ISR. Real Kafka keeps broker-1 leading during the copy (replicas 2/4/3/1), so the partition is never under-replicated, and moves leadership only after broker-4 joins the ISR. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=16.1.3&t=2)
- [Kafka partition reassignment: execute, throttle, verify](https://monedula.dev/kafka-simulator/scenarios/move-a-partition/) (Move a partition: execute, throttle, verify), step 5: Verified, and the throttle comes off with it. broker 4 is in the ISR, so the move is finished - and `kafka-reassign-partitions --verify --reassignment-json '{"version":1,"partitions":[{"topic":"orders","partition":0,"replicas":[4,2,3]}]}'` is how you find that out (inline JSON again, standing in for --reassignment-json-file). It does one more thing while it is there: with nothing still in progress it CLEARS the throttle the execute set, which is exactly what that warning was asking for. The scenario does the same on the next tick, so pressing the chip forks the sandbox onto the same action. `kafka-reassign-partitions --list` has nothing left to report, and `ssh broker-4`, `ls -lh orders-0`, `exit` shows the segment files that were not there on the previous frame. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=24.2.3&t=4)
- [Add a Kafka broker and reassign partitions onto it](https://monedula.dev/kafka-simulator/scenarios/reassign-scale-out/) (Scale out + rebalance), step 4: Partition 0 reassigning. kafka-reassign-partitions: broker-4 joins at offset 0 and starts catching up, not yet in ISR. The simulator drops broker-3 now; real Kafka keeps it in the replica set and ISR until broker-4 has caught up, so redundancy never dips. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=16.1.1&t=3)

## Sources

- [KIP-455: Create an Administrative API for Replica Reassignment](https://cwiki.apache.org/confluence/display/KAFKA/KIP-455%3A+Create+an+Administrative+API+for+Replica+Reassignment)
- [Apache Kafka upgrade notes up to 3.9](https://kafka.apache.org/39/getting-started/upgrade/)

## Related KIPs

- [KIP-73 explained: Kafka replication quotas and throttling](https://monedula.dev/kafka/kips/kip-73/)
- [KIP-500 explained: KRaft replaces ZooKeeper](https://monedula.dev/kafka/kips/kip-500/)
