Skip to content

fix: ListGroups request V3 - #642

Merged
thalesmg merged 2 commits into
kafka4beam:masterfrom
thalesmg:20250725-fix-list-groups
Jul 25, 2025
Merged

fix: ListGroups request V3#642
thalesmg merged 2 commits into
kafka4beam:masterfrom
thalesmg:20250725-fix-list-groups

Conversation

@thalesmg

Copy link
Copy Markdown
Contributor

Currently, the v3 version of this request is lacking tagged_fields.

[2025-07-25 13:35:23,014] ERROR Exception while processing request from 172.100.239.7:9092-172.100.239.2:41464-502 (kafka.network.Processor)
org.apache.kafka.common.errors.InvalidRequestException: Error getting request for apiKey: LIST_GROUPS, apiVersion: 3, connectionId: 172.100.239.7:9092-172.100.239.2:41464-502, listenerName: ListenerName(PLAINTEXT), principal: User:ANONYMOUS
Caused by: java.nio.BufferUnderflowException
	at java.base/java.nio.Buffer.nextGetIndex(Unknown Source)
	at java.base/java.nio.HeapByteBuffer.get(Unknown Source)
	at org.apache.kafka.common.utils.ByteUtils.readUnsignedVarint(ByteUtils.java:146)
	at org.apache.kafka.common.protocol.ByteBufferAccessor.readUnsignedVarint(ByteBufferAccessor.java:63)
	at org.apache.kafka.common.message.ListGroupsRequestData.read(ListGroupsRequestData.java:129)
	at org.apache.kafka.common.message.ListGroupsRequestData.<init>(ListGroupsRequestData.java:80)
	at org.apache.kafka.common.requests.ListGroupsRequest.parse(ListGroupsRequest.java:81)
	at org.apache.kafka.common.requests.AbstractRequest.doParseRequest(AbstractRequest.java:190)
	at org.apache.kafka.common.requests.AbstractRequest.parseRequest(AbstractRequest.java:152)
	at org.apache.kafka.common.requests.RequestContext.parseRequest(RequestContext.java:95)
	at kafka.network.RequestChannel$Request.<init>(RequestChannel.scala:102)
	at kafka.network.Processor.$anonfun$processCompletedReceives$1(SocketServer.scala:1030)
	at java.base/java.util.LinkedHashMap$LinkedValues.forEach(Unknown Source)
	at kafka.network.Processor.processCompletedReceives(SocketServer.scala:1008)
	at kafka.network.Processor.run(SocketServer.scala:893)
	at java.base/java.lang.Thread.run(Unknown Source)

@thalesmg
thalesmg force-pushed the 20250725-fix-list-groups branch 3 times, most recently from ae0c7f4 to 865f7b7 Compare July 25, 2025 13:52
Currently, the v3 version of this request is lacking `tagged_fields`.

```
[2025-07-25 13:35:23,014] ERROR Exception while processing request from 172.100.239.7:9092-172.100.239.2:41464-502 (kafka.network.Processor)
org.apache.kafka.common.errors.InvalidRequestException: Error getting request for apiKey: LIST_GROUPS, apiVersion: 3, connectionId: 172.100.239.7:9092-172.100.239.2:41464-502, listenerName: ListenerName(PLAINTEXT), principal: User:ANONYMOUS
Caused by: java.nio.BufferUnderflowException
	at java.base/java.nio.Buffer.nextGetIndex(Unknown Source)
	at java.base/java.nio.HeapByteBuffer.get(Unknown Source)
	at org.apache.kafka.common.utils.ByteUtils.readUnsignedVarint(ByteUtils.java:146)
	at org.apache.kafka.common.protocol.ByteBufferAccessor.readUnsignedVarint(ByteBufferAccessor.java:63)
	at org.apache.kafka.common.message.ListGroupsRequestData.read(ListGroupsRequestData.java:129)
	at org.apache.kafka.common.message.ListGroupsRequestData.<init>(ListGroupsRequestData.java:80)
	at org.apache.kafka.common.requests.ListGroupsRequest.parse(ListGroupsRequest.java:81)
	at org.apache.kafka.common.requests.AbstractRequest.doParseRequest(AbstractRequest.java:190)
	at org.apache.kafka.common.requests.AbstractRequest.parseRequest(AbstractRequest.java:152)
	at org.apache.kafka.common.requests.RequestContext.parseRequest(RequestContext.java:95)
	at kafka.network.RequestChannel$Request.<init>(RequestChannel.scala:102)
	at kafka.network.Processor.$anonfun$processCompletedReceives$1(SocketServer.scala:1030)
	at java.base/java.util.LinkedHashMap$LinkedValues.forEach(Unknown Source)
	at kafka.network.Processor.processCompletedReceives(SocketServer.scala:1008)
	at kafka.network.Processor.run(SocketServer.scala:893)
	at java.base/java.lang.Thread.run(Unknown Source)
```
@thalesmg
thalesmg force-pushed the 20250725-fix-list-groups branch from 865f7b7 to 8bee59f Compare July 25, 2025 14:09
@thalesmg
thalesmg marked this pull request as ready for review July 25, 2025 14:20
@thalesmg
thalesmg merged commit d0f918b into kafka4beam:master Jul 25, 2025
9 checks passed
@thalesmg
thalesmg deleted the 20250725-fix-list-groups branch July 25, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants