mirror of https://github.com/apache/kafka.git
A simplified port of "CopartitionedTopicsEnforcer" from the client-side to the group coordinator. This class is responsible for enforcing the number of partitions in copartitioned topics. For each copartition group, it checks whether the number of partitions for all topics in the group is the same, and enforces the right number of partitions for repartition topics whose number of partitions is not enforced by the topology. Compared to the client-side version, the implementation uses immutable data structures, and returns the computed number of partitions instead of modifying mutable data structures and calling the admin client. Reviewers: Bruno Cadonna <cadonna@apache.org> |
||
---|---|---|
.. | ||
group-coordinator-api/src/main/java/org/apache/kafka/coordinator/group/api/assignor | ||
src | ||
.gitignore |