[ 
https://issues.apache.org/jira/browse/KAFKA-18060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai resolved KAFKA-18060.
------------------------------------
    Resolution: Fixed

> new coordinator does not handle TxnOffsetCommitRequest with empty member id 
> when using CONSUMER group
> -----------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-18060
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18060
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: Kuan Po Tseng
>            Priority: Blocker
>             Fix For: 4.0.0
>
>
> When reviewing KAFKA-17961 and KAFKA-17964, we notice two issues:
> 1) new coordinator can't handle the TxnOffsetCommitRequest with empty member 
> id, and TxnOffsetCommitRequest v0-v2 do definitely has an empty member ID
> 2) the deprecated sendOffsetsToTransaction does not use v0-v2 to send 
> TxnOffsetCommitRequest with an empty member ID 
> (https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/requests/TxnOffsetCommitRequest.java#L55).
>  Unfortunately, it has been released for a while. Therefore, the new 
> coordinator needs to handle TxnOffsetCommitRequest with an empty member ID 
> for all versions.
> ----
> TxnOffsetCommitRequest versions v0-v2 do not include a member ID, causing 
> ConsumerGroup#validateOffsetCommit [0] to throw an UnknownMemberIdException. 
> This prevents the old producer from calling sendOffsetsToTransaction.
> Note that TxnOffsetCommitRequest versions v0-v2 are included in KIP-896 [1], 
> so it seems the new coordinator should support that operations
> [0] 
> https://github.com/apache/kafka/blob/trunk/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java#L517
> [1] 
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-896%3A+Remove+old+client+protocol+API+versions+in+Kafka+4.0



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to