popsunlake opened a new pull request, #16712: URL: https://github.com/apache/kafka/pull/16712
*More detailed description of your change: sort zk-based quorum's brokerList to keep consistent order when create and alter topics *Summary of testing strategy (including rationale): I set up an environment containing 3 Kafka brokers and based on [KAFKA-17198](https://issues.apache.org/jira/browse/KAFKA-17198) Conduct testing, the testing steps are as follows: 1. Create a topic with replica 1 and partition 2 2. Expand the topic to 3 partitions The results meet expectations. All three possible distributions are: [1,2,0] [0,1,2] [2,0,1] ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org