You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "lucasbru (via GitHub)" <gi...@apache.org> on 2024/12/04 17:43:41 UTC
[PR] Implement support for streams groups in kafka-groups.sh [kafka]
lucasbru opened a new pull request, #18043:
URL: https://github.com/apache/kafka/pull/18043
Add support for streams groups in `kafka-groups.sh`, including a little integration test that spins up a kafka streams application and lists the group.
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
--
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] Implement support for streams groups in kafka-groups.sh [kafka]
Posted by "lucasbru (via GitHub)" <gi...@apache.org>.
lucasbru commented on code in PR #18043:
URL: https://github.com/apache/kafka/pull/18043#discussion_r1870800560
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroup.java:
##########
@@ -251,7 +249,7 @@ public String stateAsString(long committedOffset) {
public ListGroupsResponseData.ListedGroup asListedGroup(long committedOffset) {
return new ListGroupsResponseData.ListedGroup()
.setGroupId(groupId)
- .setProtocolType(ConsumerProtocol.PROTOCOL_TYPE)
+ .setProtocolType("streams")
Review Comment:
I think for classic groups, there is more than one protocol (consumer, sr, connect...) but for streams groups, there is only a single protocol, that's why I added a literal here. So for a single value, not sure if an enum makes sense. But we could move it to a static constant.
--
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] Implement support for streams groups in kafka-groups.sh [kafka]
Posted by "bbejeck (via GitHub)" <gi...@apache.org>.
bbejeck commented on code in PR #18043:
URL: https://github.com/apache/kafka/pull/18043#discussion_r1870258964
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroup.java:
##########
@@ -251,7 +249,7 @@ public String stateAsString(long committedOffset) {
public ListGroupsResponseData.ListedGroup asListedGroup(long committedOffset) {
return new ListGroupsResponseData.ListedGroup()
.setGroupId(groupId)
- .setProtocolType(ConsumerProtocol.PROTOCOL_TYPE)
+ .setProtocolType("streams")
Review Comment:
This is fine, but do we want to consider an `enum` for streams related 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
Re: [PR] Implement support for streams groups in kafka-groups.sh [kafka]
Posted by "lucasbru (via GitHub)" <gi...@apache.org>.
lucasbru merged PR #18043:
URL: https://github.com/apache/kafka/pull/18043
--
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