Skip to content

[KIP-848]: Structure change for DescribeConsumerGroups #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 30, 2025

Conversation

PratRanj07
Copy link
Contributor

This PR intends to add two new field type and target assignment for DescribeConsumerGroup Response.

@Copilot Copilot AI review requested due to automatic review settings May 26, 2025 10:18
@PratRanj07 PratRanj07 requested review from a team as code owners May 26, 2025 10:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds two new fields (type and targetAssignment) to the DescribeConsumerGroup response, updates native bindings, JS exports, tests, and examples.

  • Extend C++ binding (common.cc) to include targetAssignment and group type.
  • Expose and document ConsumerGroupTypes in JS library modules.
  • Update tests and examples to consume the new type field.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/promisified/admin/describe_groups.spec.js Import and assert the new type field
src/common.cc Add targetAssignment and type properties to V8 objects
lib/rdkafka.js Export ConsumerGroupTypes
lib/kafkajs/_kafka.js Include ConsumerGroupTypes in client exports
lib/kafkajs/_admin.js Document and expose ConsumerGroupTypes enum
lib/admin.js Define and freeze ConsumerGroupTypes enum
examples/kafkajs/admin/describe-groups.js Log the new type field in sample output
Comments suppressed due to low confidence (2)

test/promisified/admin/describe_groups.spec.js:89

  • Tests cover the new type field but don’t assert the newly added targetAssignment. Add assertions to verify group.targetAssignment is returned correctly when present.
type: ConsumerGroupTypes.CLASSIC,

examples/kafkajs/admin/describe-groups.js:75

  • The example logs the new type field but omits targetAssignment. Consider adding a line like console.log(\tTarget assignment: ${JSON.stringify(group.targetAssignment)}); to illustrate its usage.
console.log(`	Type: ${group.type}`);

* @enum {number}
* @readonly
* @memberof KafkaJS
* @see RdKafka.ConsumerGroupTypes
Copy link
Preview

Copilot AI May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @see tag references RdKafka.ConsumerGroupTypes but the enum is on RdKafka.AdminClient.ConsumerGroupTypes. Update the annotation to match the actual export path.

Suggested change
* @see RdKafka.ConsumerGroupTypes
* @see RdKafka.AdminClient.ConsumerGroupTypes

Copilot uses AI. Check for mistakes.

@sonarqube-confluent

This comment has been minimized.

@airlock-confluentinc airlock-confluentinc bot force-pushed the dev_add_describeGroup branch from 7c59a2f to f7e33a5 Compare June 10, 2025 10:26
@PratRanj07 PratRanj07 changed the base branch from master to dev_kip848Testing June 10, 2025 10:27
@sonarqube-confluent

This comment has been minimized.

Copy link
Contributor

@milindl milindl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requires a CHANGELOG.md update as it has some changes to public API

@airlock-confluentinc airlock-confluentinc bot force-pushed the dev_add_describeGroup branch from f7e33a5 to efa00b2 Compare June 30, 2025 07:11
@sonarqube-confluent
Copy link

Failed

  • 41.90% Coverage on New Code (is less than 80.00%)

Analysis Details

1 Issue

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 1 Code Smell

Coverage and Duplications

  • Coverage 41.90% Coverage (47.70% Estimated after merge)
  • Duplications No duplication information (2.00% Estimated after merge)

Project ID: confluent-kafka-javascript

View in SonarQube

@PratRanj07 PratRanj07 merged commit 4bd627d into dev_kip848Testing Jun 30, 2025
1 of 3 checks passed
@PratRanj07 PratRanj07 deleted the dev_add_describeGroup branch June 30, 2025 12:00
PratRanj07 added a commit that referenced this pull request Jul 1, 2025
…r KIP-848 (#329)

* Run perf tests for consumer protocol

* changed docker location for Promisified tests

* Run promisified tests with the new protocol

* Added kafka_jaas.conf

* Remove forbidden properties from KAFAKJS configs too

* Skip for partitionAssigners as well

* Increase test timeout

* increase sleep timeout and expect any strings in protocol in describe groups

* increase test timeout

* set session timeout in server properties

* set session timeout 10 secs

* Skip oauthbreaker tests

* Skip all oauthbreaker_cb tests

* docker logging

* increase timeout to 60

* pin versions

* Remove logging and decrease sleep time

* Change coverage file name

* [KIP-848]: Structure change for DescribeConsumerGroups (#327)

* Added new fields in DescribeConsumerGroup

* error debug

* test changes

* test enabled

* requested changes

* Test fix

* Test fix

* Changelog and test fix

* Changelog change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy