dajac commented on code in PR #13901: URL: https://github.com/apache/kafka/pull/13901#discussion_r1246649219
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java: ########## @@ -728,6 +794,81 @@ public void replay( } consumerGroup.removeMember(memberId); } + + updateGroupsByTopics(groupId, oldSubscribedTopicNames, consumerGroup.subscribedTopicNames()); + } + + /** + * @return The set of groups subscribed to the topic. + */ + public Set<String> groupsSubscribedToTopic(String topicName) { + Set<String> groups = groupsByTopics.get(topicName); Review Comment: because it requires the default value must be a TimelineHashSet and i did not want to create one every time. i also considered creating a default empty one to use it here but i was not really happy with this either. -- 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