lucasbru opened a new pull request, #24148: URL: https://github.com/apache/kafka/pull/24148
Follow-up to #24127, which made the copartition enforcer consider only the fixed repartition topics of the copartition group. Without that change, a valid topology with unrelated fixed repartition topics of different partition counts put a streams-protocol client into ERROR, and a group of flexible repartition topics got the partition count of an unrelated fixed topic instead of the maximum of its own sources. This change adds two integration tests to InternalTopicIntegrationTest. They run a streams-protocol client on a topology joining two flexible repartition topics (sources with 2 and 4 partitions) next to unrelated fixed repartition topics, once with two fixed topics of different counts and once with a single one. The client has to reach RUNNING and the join's repartition topics have to get 4 partitions. Both fail on the code before #24127. The enforcer now reports only the fixed repartition topics of the group when their counts differ, instead of every repartition topic in the group, by reusing the existing same-partition-count check. The javadoc notes that the fixed and flexible topic sets may contain topics outside of the group. Unit tests in CopartitionedTopicsEnforcerTest and InternalTopicManagerTest cover the same situation, including the call site that passes the topology-wide sets and a copartition group in which one repartition topic exists and its sibling is missing. -- 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]
