showuon commented on a change in pull request #10509: URL: https://github.com/apache/kafka/pull/10509#discussion_r611356769
########## File path: clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java ########## @@ -108,6 +107,8 @@ private boolean allSubscriptionsEqual(Set<String> allTopics, subscribedTopics.addAll(subscription.topics()); } else if (!(subscription.topics().size() == subscribedTopics.size() && subscribedTopics.containsAll(subscription.topics()))) { + // we don't need consumerToOwnedPartitions in general assign case + consumerToOwnedPartitions = null; Review comment: I'll separate the `checkAllSubscriptionEqual` and `getConsumerToOwnedPartitions` methods in KAFKA-12654 -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org