What is AlterPartition?
Brokers notify the KRaft controller of ISR changes through this API when a follower catches up (expansion) or falls behind (shrink). This replaced the ZooKeeper watcher-based ISR change path; in KRaft mode, all ISR changes flow here, making them serializable and auditable.
| Version | Kafka | Changes |
|---|---|---|
| AlterPartitionRequest | ||
| v2 | 3.3 | + TopicId uuidadds TopicId field to replace TopicName field (KIP-841). |
| v3 | 3.5 | + NewIsrWithEpochs []BrokerState+ BrokerId int32+ BrokerEpoch int64- NewIsr []int32adds the NewIsrEpochs field and deprecates the NewIsr field (KIP-903). |
| AlterPartitionResponse | ||
| v2 | 3.3 | + TopicId uuidadds TopicId field to replace TopicName field, can return the following new errors: INELIGIBLE_REPLICA, NEW_LEADER_ELECTED and UNKNOWN_TOPIC_ID (KIP-841). |
| v3 | 3.5 | is the same as version 2 (KIP-903). |