Skip to content

Commit

Permalink
IBM#2443 Use version 4 of DescribeGroupsRequest only if kafka broker…
Browse files Browse the repository at this point in the history
… version is geater than 2.4.0.0
  • Loading branch information
dfr-unabiz committed Mar 6, 2023
1 parent 397cee4 commit f1af2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ func (ca *clusterAdmin) DescribeConsumerGroups(groups []string) (result []*Group
describeReq := &DescribeGroupsRequest{
Groups: brokerGroups,
}
if ca.conf.Version.IsAtLeast(V2_3_0_0) {
if ca.conf.Version.IsAtLeast(V2_4_0_0) {
describeReq.Version = 4
}
response, err := broker.DescribeGroups(describeReq)
Expand Down

0 comments on commit f1af2e4

Please sign in to comment.