discarded reason: the author of KIP-1043 create submit another KIP which include this improvement

Status

Current state: Under Discussion

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]

JIRA: here [Change the link from KAFKA-1 to your own ticket]

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

Inspired by KIP-1152, which introduced filtering transactions based on a transactional ID pattern, this KIP proposes applying the same idea to the DescribeGroups API introduced in KIP-1043.

By allowing filtering of group descriptions based on group ID patterns, we improve usability and scalability when managing large numbers of groups.

Proposed Changes

Public Interfaces

DescribeGroupsRequest

{
  "apiKey": 15,
  "type": "request",
  "listeners": ["broker"],
  "name": "DescribeGroupsRequest",
  // Versions 1 and 2 are the same as version 0.
  //
  // Starting in version 3, authorized operations can be requested.
  //
  // Starting in version 4, the response will include group.instance.id info for members.
  //
  // Version 5 is the first flexible version.
  //
  // Version 6 returns error code GROUP_ID_NOT_FOUND if the group ID is not found (KIP-1043).
  "validVersions": "0-7",
  "flexibleVersions": "5+",
  "fields": [
	...,
    { "name": "GroupIdPattern", "type": "string", "versions": "7+",
      "about": "The Group ID regular expression pattern to filter by: if it is empty or null, all Group are returned; Otherwise then only the groups matching the given regular expression will be returned." }
  ]
}

DescribeGroupsResponse

{
  "apiKey": 15,
  "type": "response",
  "name": "DescribeGroupsResponse",
  "validVersions": "0-7",
  "flexibleVersions": "5+",
  "fields": [     
	// The response can return a INVALID_REGULAR_EXPRESSION error.
   ]
}


Compatibility, Deprecation, and Migration Plan

  • wip

Test Plan

It will be tested in the unit test and integration test.

Rejected Alternatives

N/A

  • No labels