unknowntpo opened a new pull request, #24209:
URL: https://github.com/apache/kafka/pull/24209

   This is a reopen of #23858, which was reverted because the new test pushed 
ReplicationControlManagerTest over the NCSS limit. It depends on KAFKA-21487, 
so checkstyle will fail until that is merged, and I will rebase after it.
   
   When adding partitions, the KRaft controller takes the replication
   factor from the first partition returned by iterating the topic's
   partitions. This order depends on the hash layout, so it is not always
   partition 0. This patch uses partition 0, like the ZooKeeper-based
   broker did.
   
   This also applies to manual assignments: their replica count is now
   checked against partition 0's replication factor.
   
   The Javadoc of NewPartitions#increaseTo now says that new partitions
   follow partition 0's replication factor. This matches the old ZooKeeper
   behavior; there is no API change.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to