conduktor.io ↗

Kafka AlterPartition Changelog — Protocol Version History

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.

VersionKafkaChanges
AlterPartitionRequest
v23.3
+ TopicId uuid
adds TopicId field to replace TopicName field (KIP-841).
v33.5
+ NewIsrWithEpochs []BrokerState
+ BrokerId int32
+ BrokerEpoch int64
- NewIsr []int32
adds the NewIsrEpochs field and deprecates the NewIsr field (KIP-903).
AlterPartitionResponse
v23.3
+ TopicId uuid
adds TopicId field to replace TopicName field, can return the following new errors: INELIGIBLE_REPLICA, NEW_LEADER_ELECTED and UNKNOWN_TOPIC_ID (KIP-841).
v33.5
is the same as version 2 (KIP-903).