squah-confluent commented on code in PR #20055: URL: https://github.com/apache/kafka/pull/20055#discussion_r2174884687
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/share/ShareGroupAssignmentBuilder.java: ########## @@ -83,11 +125,35 @@ public ShareGroupMember build() { // when the member is updated. return new ShareGroupMember.Builder(member) .setState(MemberState.STABLE) - .setAssignedPartitions(targetAssignment.partitions()) + .setAssignedPartitions(filterAssignedPartitions(targetAssignment.partitions(), member.subscribedTopicNames())) Review Comment: If we ever have client-side assignors, we could have two subscription changes in a row. The first would trigger the assignor and filtering. Then the second would trigger the filtering. Finally, when the assignment is ready, it would be based on an older subscription and may not be consistent with the latest subscription. -- 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