You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "rajinisivaram (via GitHub)" <gi...@apache.org> on 2025/06/24 14:23:41 UTC
[PR] MINOR: Fix response for consumer group describe with empty group id [kafka]
rajinisivaram opened a new pull request, #20030:
URL: https://github.com/apache/kafka/pull/20030
ConsumerGroupDescribe with an empty group id returns a response containing `null` groupId in a non-nullable field. Since the response cannot be serialized, this results in UNKNOWN_SERVER_ERROR being returned to the client. This PR sets the group id in the response to an empty string instead and adds request tests for empty group id.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Fix response for consumer group describe with empty group id [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #20030:
URL: https://github.com/apache/kafka/pull/20030#issuecomment-3001444520
It seems `describeGroups`, `share`, and `stream` have similar issues:
https://github.com/apache/kafka/blob/023833fe1f067779e55931f28eacc9cb5c54c776/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java#L1131
https://github.com/apache/kafka/blob/023833fe1f067779e55931f28eacc9cb5c54c776/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java#L1183
https://github.com/apache/kafka/blob/023833fe1f067779e55931f28eacc9cb5c54c776/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java#L1265
Could you please fix them too?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Fix response for consumer group describe with empty group id [kafka]
Posted by "dajac (via GitHub)" <gi...@apache.org>.
dajac commented on code in PR #20030:
URL: https://github.com/apache/kafka/pull/20030#discussion_r2166160440
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:
##########
@@ -1262,7 +1262,7 @@ public CompletableFuture<List<DescribeGroupsResponseData.DescribedGroup>> descri
if (groupId == null) {
Review Comment:
Sounds good. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Fix response for consumer group describe with empty group id [kafka]
Posted by "rajinisivaram (via GitHub)" <gi...@apache.org>.
rajinisivaram commented on PR #20030:
URL: https://github.com/apache/kafka/pull/20030#issuecomment-3004092660
@dajac @chia7712 Thanks for the reviews, merging to trunk, 4.1 and 4.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Fix response for consumer group describe with empty group id [kafka]
Posted by "dajac (via GitHub)" <gi...@apache.org>.
dajac commented on code in PR #20030:
URL: https://github.com/apache/kafka/pull/20030#discussion_r2165864926
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:
##########
@@ -1262,7 +1262,7 @@ public CompletableFuture<List<DescribeGroupsResponseData.DescribedGroup>> descri
if (groupId == null) {
Review Comment:
I suppose that this code is actually never used because the group id cannot be null in the request. We may just want to remove it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Fix response for consumer group describe with empty group id [kafka]
Posted by "rajinisivaram (via GitHub)" <gi...@apache.org>.
rajinisivaram merged PR #20030:
URL: https://github.com/apache/kafka/pull/20030
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Fix response for consumer group describe with empty group id [kafka]
Posted by "rajinisivaram (via GitHub)" <gi...@apache.org>.
rajinisivaram commented on code in PR #20030:
URL: https://github.com/apache/kafka/pull/20030#discussion_r2165942934
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:
##########
@@ -1262,7 +1262,7 @@ public CompletableFuture<List<DescribeGroupsResponseData.DescribedGroup>> descri
if (groupId == null) {
Review Comment:
Yes, that is correct. There are a few requests where empty group id is supported, so we have this null check and an associated comment which mentions that empty group id is supported. I think GroupCoordinatorServerTest includes unit tests for all of those, but obviously no request tests since we can't get there. Other requests use `isGroupIdNotEmpty`. Should we just leave this in to maintain the same pattern for all requests?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org