kafka icon indicating copy to clipboard operation
kafka copied to clipboard

KAFKA-15462: Add Group Type Filter for List Group to the Admin Client

Open rreddy-22 opened this issue 2 years ago • 2 comments

In KIP-848, we introduce the notion of Group Types based on the protocol type that the members in the consumer group use. As of now we support two types of groups:

  1. Classic : Members use the classic consumer group protocol ( existing one )
  2. Consumer : Members use the consumer group protocol introduced in KIP-848.

Currently List Groups allows users to list all the consumer groups available. KIP-518 introduced filtering the consumer groups by the state that they are in. We now want to allow users to filter consumer groups by type.

This PR includes the changes to the admin client and related files. It also includes changes to parameterize the tests to include permutations of the old GC and the new GC with the different protocol types.

rreddy-22 avatar Jan 08 '24 19:01 rreddy-22

Ran all the tests locally with changes from this patch https://github.com/apache/kafka/pull/15311 and everything passes. Tests in ListConsumerGroupTest that use the new "consumer" protocol will be flaky and mostly fail without this fix.

rreddy-22 avatar Feb 08 '24 00:02 rreddy-22

@rreddy-22 There are conflicts due to changes made in https://github.com/apache/kafka/commit/88c5543ccfb517ceba8dc56d22576efdf2540e0e. Could you take a look when you get a chance?

dajac avatar Feb 13 '24 04:02 dajac