What is AlterPartitionReassignments?
Moves partition replicas between brokers via kafka-reassign-partitions.sh --execute, for rebalancing or decommissioning. Passing null as the target replica list cancels an in-progress reassignment; reassignments respect throttle.replication.rate.limit to avoid saturating broker network.
| Version | Kafka | Changes |
|---|---|---|
| AlterPartitionReassignmentsRequest | ||
| v0 | 2.4 | + TimeoutMs int32+ Topics []ReassignableTopic+ Name string+ Partitions []ReassignablePartition+ PartitionIndex int32+ Replicas []int32~ Flexible encoding enabled FLEXIBLE |
| v1 | 4.1 | + AllowReplicationFactorChange booladds the ability to allow/disallow changing the replication factor as part of the request. |
| AlterPartitionReassignmentsResponse | ||
| v0 | 2.4 | + ThrottleTimeMs int32+ ErrorCode int16+ ErrorMessage string+ Responses []ReassignableTopicResponse+ Name string+ Partitions []ReassignablePartitionResponse+ PartitionIndex int32+ ErrorCode int16+ ErrorMessage string~ Flexible encoding enabled FLEXIBLE |
| v1 | 4.1 | + AllowReplicationFactorChange booladds the ability to allow/disallow changing the replication factor as part of the request. |