Skip to content

Conversation

@MANnsz
Copy link

@MANnsz MANnsz commented Nov 13, 2025

Originally, custom partition reassignment is used when new partitions is created.
In case of using of rack awareness custom reassignment is not allowed to rely on broker.rack property because it bypasses the rack-aware assignment logic and can lead to rack-aware violations.
According to https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/admin/NewPartitions.java#L43 setting custom partition reassignment is not necessary and controller would be responsible for assigning replicas to brokers for existing topics.

Fixes #

Proposed Changes

  • Remove custom partition reassignment in order to Kafka controller makes the decisions on replica assignments to brokers, based on configurations and rules like rack awareness.

… responsible for assigning replicas to brokers, when new partitions is created
@StephenSorriaux
Copy link
Owner

StephenSorriaux commented Nov 13, 2025

Thank you. I am wondering if that change is valid for all Kafka versions, I kind of remember this was needed when I first developed this lib (a looong time ago...). Let's see how the tests run.

@StephenSorriaux
Copy link
Owner

Looks very good to me. Thanks again,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants