You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2023-07-05 14:13:46,099] ERROR [KafkaApi-2] Unexpected error handling request RequestHeader(apiKey=LEAVE_GROUP, apiVersion=0, clientId=sarama, correlationId=657, headerVersion=1) -- LeaveGroupRequestData(groupId='CG1, memberId='sarama-514ac294-383f-4a37-a5d9-aabcbb6acafa', members=[]) with context RequestContext(header=RequestHeader(apiKey=LEAVE_GROUP, apiVersion=0, clientId=sarama, correlationId=657, headerVersion=1), connectionId='172.29.1.60:9092-172.29.0.40:11430-1081', clientAddress=/172.29.0.40, principal=User:ANONYMOUS, listenerName=ListenerName(PLAINTEXT), securityProtocol=PLAINTEXT, clientInformation=ClientInformation(softwareName=unknown, softwareVersion=unknown), fromPrivilegedListener=true, principalSerde=Optional[org.apache.kafka.common.security.authenticator.DefaultKafkaPrincipalBuilder@4fea8385]) (kafka.server.KafkaApis)
java.util.concurrent.CompletionException: org.apache.kafka.common.errors.UnsupportedVersionException: LeaveGroup response version 0 can only contain one member, got 0 members.
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:838)
at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:848)
at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2168)
at kafka.server.KafkaApis.handleLeaveGroupRequest(KafkaApis.scala:1794)
at kafka.server.KafkaApis.handle(KafkaApis.scala:196)
at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:75)
at java.lang.Thread.run(Thread.java:750)
Caused by: org.apache.kafka.common.errors.UnsupportedVersionException: LeaveGroup response version 0 can only contain one member, got 0 members.
Problem Description
LeaveGroupRequest still use the old version request.
// Leaves the cluster, called by Close.func (c*consumerGroup) leave() error {
c.lock.Lock()
deferc.lock.Unlock()
ifc.memberID=="" {
returnnil
}
coordinator, err:=c.client.Coordinator(c.groupID)
iferr!=nil {
returnerr
}
// KIP-345 if groupInstanceId is set, don not leave group when consumer closed.// Since we do not discover ApiVersion for brokers, LeaveGroupRequest still use the old version request for nowifc.groupInstanceId==nil {
resp, err:=coordinator.LeaveGroup(&LeaveGroupRequest{
GroupId: c.groupID,
MemberId: c.memberID,
})
iferr!=nil {
_=coordinator.Close()
returnerr
}
// Unset memberIDc.memberID=""// Check responseswitchresp.Err {
caseErrRebalanceInProgress, ErrUnknownMemberId, ErrNoError:
returnnildefault:
returnresp.Err
}
} else {
c.memberID=""
}
returnnil
}
typeLeaveGroupRequeststruct {
Versionint16GroupIdstringMemberIdstring// Removed in Version 3Members []MemberIdentity// Added in Version 3
}
The text was updated successfully, but these errors were encountered:
Use the correct version and format of LeaveGroup as determined by the
configured Version field.
Fixes#2486
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
Use the correct version and format of LeaveGroup as determined by the
configured Version field.
Fixes#2486
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
Versions
Configuration
Logs
Kafka logs: CLICK ME
[2023-07-05 14:13:46,099] ERROR [KafkaApi-2] Unexpected error handling request RequestHeader(apiKey=LEAVE_GROUP, apiVersion=0, clientId=sarama, correlationId=657, headerVersion=1) -- LeaveGroupRequestData(groupId='CG1, memberId='sarama-514ac294-383f-4a37-a5d9-aabcbb6acafa', members=[]) with context RequestContext(header=RequestHeader(apiKey=LEAVE_GROUP, apiVersion=0, clientId=sarama, correlationId=657, headerVersion=1), connectionId='172.29.1.60:9092-172.29.0.40:11430-1081', clientAddress=/172.29.0.40, principal=User:ANONYMOUS, listenerName=ListenerName(PLAINTEXT), securityProtocol=PLAINTEXT, clientInformation=ClientInformation(softwareName=unknown, softwareVersion=unknown), fromPrivilegedListener=true, principalSerde=Optional[org.apache.kafka.common.security.authenticator.DefaultKafkaPrincipalBuilder@4fea8385]) (kafka.server.KafkaApis) java.util.concurrent.CompletionException: org.apache.kafka.common.errors.UnsupportedVersionException: LeaveGroup response version 0 can only contain one member, got 0 members. at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:838) at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:848) at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2168) at kafka.server.KafkaApis.handleLeaveGroupRequest(KafkaApis.scala:1794) at kafka.server.KafkaApis.handle(KafkaApis.scala:196) at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:75) at java.lang.Thread.run(Thread.java:750) Caused by: org.apache.kafka.common.errors.UnsupportedVersionException: LeaveGroup response version 0 can only contain one member, got 0 members.
Problem Description
LeaveGroupRequest still use the old version request.
https://github.com/Shopify/sarama/blob/v1.38.1/leave_group_request.go
The text was updated successfully, but these errors were encountered: