KAFKA-8538 (part of KIP-345): add group.instance.id to DescribeGroup#6957
KAFKA-8538 (part of KIP-345): add group.instance.id to DescribeGroup#6957guozhangwang merged 5 commits intoapache:trunkfrom
Conversation
There was a problem hiding this comment.
@hachikuji @guozhangwang I noticed that this class was only used in the deprecated admin client, do we still need to add group.instance.id support to it? If not, I could consider removing the follow-up changes in scala code.
There was a problem hiding this comment.
I think @ijuma already have a PR for removing the deprecated admin clients. We can wait for his PR to be merged first?
4f30df9 to
a855838
Compare
a855838 to
f9fb070
Compare
|
retest this please |
There was a problem hiding this comment.
I think @ijuma already have a PR for removing the deprecated admin clients. We can wait for his PR to be merged first?
There was a problem hiding this comment.
Actually the constructor of all such description classes can just be default package-private since they are only used by KafkaAdminClient, and hence can just be private APIs, and we do not need to deprecate-overload any more.
f9fb070 to
3a7aee6
Compare
guozhangwang
left a comment
There was a problem hiding this comment.
LGTM except one minor comment, ping another pair of eyes before merging.
| private final MemberAssignment assignment; | ||
|
|
||
| public MemberDescription(String memberId, String clientId, String host, MemberAssignment assignment) { | ||
| public MemberDescription(String memberId, |
There was a problem hiding this comment.
As mentioned above, we can make this constructor default access.
|
Retest this please |
1 similar comment
|
Retest this please |
|
@ableegoldman @vvcephei Could you also take a look? |
|
@ableegoldman Thank you! |
|
Retest this please |
This patch fixes a compatibility breaking `MemberDescription` constructor change in #6957. It also updates `equals` and `hashCode` for the new `groupInstanceId` field that was added in the same patch. Reviewers: Ismael Juma <ismael@juma.me.uk>, Jason Gustafson <jason@confluent.io>
) This patch fixes a compatibility breaking `MemberDescription` constructor change in apache#6957. It also updates `equals` and `hashCode` for the new `groupInstanceId` field that was added in the same patch. Reviewers: Ismael Juma <ismael@juma.me.uk>, Jason Gustafson <jason@confluent.io>
#7886) Kafka-8538(#6957) has already added `group.instance.id` to `MemberDescription` but didn't print it in the describe group output, so this patch adds the logic to do so. Before the change, the describe command prints as follows: ``` GROUP CONSUMER-ID HOST CLIENT-ID #PARTITIONS DemoConsumer consumer-DemoConsumer-2-89251f12-f0ae-4dc1-a118-bda49f2a6e86 /127.0.0.1 consumer-DemoConsumer-2 0 DemoConsumer consumer-DemoConsumer-1-72221c6b-f3d9-4c68-96db-ffffa12ddf93 /127.0.0.1 consumer-DemoConsumer-1 1 ``` After the change, the describe command prints as follows: ``` GROUP CONSUMER-ID GROUP-INSTANCE-ID HOST CLIENT-ID #PARTITIONS DemoConsumer groupIns2-f050379c-9c0d-433c-bbe0-44de6177b60d groupIns2 /127.0.0.1 consumer-DemoConsumer-groupIns2 0 DemoConsumer groupIns1-44805ba9-ae6f-49d3-89af-44a4b95aff8d groupIns1 /127.0.0.1 consumer-DemoConsumer-groupIns1 1 ``` If all the `GROUP-INSTANCE-ID` is null, just as the previous: ``` GROUP CONSUMER-ID HOST CLIENT-ID #PARTITIONS DemoConsumer consumer-DemoConsumer-2-89251f12-f0ae-4dc1-a118-bda49f2a6e86 /127.0.0.1 consumer-DemoConsumer-2 0 DemoConsumer consumer-DemoConsumer-1-72221c6b-f3d9-4c68-96db-ffffa12ddf93 /127.0.0.1 consumer-DemoConsumer-1 1 ``` Reviewers: Alice <WheresAlice@users.noreply.github.com>, Matthias J. Sax <matthias@confluent.io>, Boyang Chen <boyang@confluent.io>, Jason Gustafson <jason@confluent.io>
Include group.instance.id in the describe group result for better visibility.
Committer Checklist (excluded from commit message)