Skip to content
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

Add support for querying consumer group coordinator id in DescribeGroupsResponseGroup #28

Closed
amuraru opened this issue Apr 7, 2021 · 3 comments

Comments

@amuraru
Copy link

amuraru commented Apr 7, 2021

Kafka kafka-consumer-groups --describe supports getting the cg coordinator id:

GROUP                                               COORDINATOR (ID)          ASSIGNMENT-STRATEGY  STATE           #MEMBERS
p-xp-writer-prod                        kafka-101:9206 (206) range                Stable

It would be really useful to get this when using franz-go as well

@twmb
Copy link
Owner

twmb commented Apr 7, 2021

Hello!

That struct reflects the definition of the DescribeGroupsResponse, and the coordinator is not a part of that struct.

The Java client first issues a FindCoordinator per group and then uses the coordinator returned along with the information from a DescribeGroups request to print the output you posted. The kgo client does something similar, and the coordinator ID requests were issued to is available as the in the Meta.NodeID in response shards if using RequestSharded.

Is it possible to use RequestSharded?

@amuraru
Copy link
Author

amuraru commented Apr 7, 2021

Thanks @twmb - will give that a try

@twmb
Copy link
Owner

twmb commented Apr 7, 2021

Cool! Let me know if that works. I'm going to close this issue but please reopen it if that does not resolve things.

@twmb twmb closed this as completed Apr 7, 2021
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

No branches or pull requests

2 participants