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

fix: client.Lag doesn't calculate lag for all consumergroups with client.Lag(ctx) #712

Merged
merged 2 commits into from
May 26, 2024

Conversation

0xgirish
Copy link
Contributor

@0xgirish 0xgirish commented Apr 26, 2024

image

Getting lag as nil, in case Lag method was called as client.Lag(ctx), other methods of this library defaults to listing offsets and describing to all the groups/topics incase no group/topic is specified, Assuming the same behaviour for this method.

e.g.
Client.DescribeGroups

DescribeGroups describes either all groups specified, or all groups in the cluster if none are specified.

Client.ListTopics

ListTopics issues a metadata request and returns TopicDetails. Specific topics to describe can be passed as additional arguments. If no topics are specified, all topics are requested. Internal topics are not returned unless specifically requested. To see all topics including internal topics, use ListTopicsWithInternal.

…ent.Lag(ctx)

Signed-off-by: Girish Kumar <45126881+0xgirish@users.noreply.github.com>
@0xgirish
Copy link
Contributor Author

After changes:

image

@0xgirish
Copy link
Contributor Author

@twmb please review.

pkg/kadm/groups.go Outdated Show resolved Hide resolved
@0xgirish
Copy link
Contributor Author

0xgirish commented May 4, 2024

@twmb I have addressed the review comment.

@0xgirish 0xgirish requested review from twmb May 7, 2024 05:08
@twmb twmb added the minor label May 9, 2024
@twmb twmb added kadm Anything related to kadm specifically and removed minor labels May 26, 2024
@twmb twmb merged commit 556abe3 into twmb:master May 26, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kadm Anything related to kadm specifically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants