NicoleYWDu commented on code in PR #24071:
URL: https://github.com/apache/kafka/pull/24071#discussion_r4603001202


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:
##########
@@ -690,6 +693,7 @@ public List<ListGroupsResponseData.ListedGroup> listGroups(
 
         return groupStream
             .filter(combinedFilter)
+            .filter(group -> groupIdFilter.test(group.groupId()))

Review Comment:
   Done, thanks! The group id filter is now part of combinedFilter. The group 
id filter may be expensive, so it is only evaluated for groups that pass the 
other filters.



-- 
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]

Reply via email to