ableegoldman commented on a change in pull request #10985: URL: https://github.com/apache/kafka/pull/10985#discussion_r668402323
########## File path: clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java ########## @@ -121,7 +129,12 @@ private boolean allSubscriptionsEqual(Set<String> allTopics, // If the current member's generation is higher, all the previously owned partitions are invalid if (memberData.generation.isPresent() && memberData.generation.get() > maxGeneration) { - membersWithOldGeneration.addAll(membersOfCurrentHighestGeneration); + allPreviousPartitionsToOwner.clear(); Review comment: In that case, it's never added to `consumerToOwnedPartitions` in the first place. This map is not pre-filled, it gets populated inside this loop. So if its `< maxGeneration`, then we just insert an empty list into the map for that member's owned partitions -- 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