You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/27 20:11:00 UTC

[jira] [Commented] (KAFKA-9776) Producer should automatically downgrade CommitTxRequest

    [ https://issues.apache.org/jira/browse/KAFKA-9776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17069021#comment-17069021 ] 

ASF GitHub Bot commented on KAFKA-9776:
---------------------------------------

abbccdda commented on pull request #8375: KAFKA-9776: Downgrade TxnCommit API v3 when broker doesn't support
URL: https://github.com/apache/kafka/pull/8375
 
 
   Revert the decision for the `sendOffsetsToTransaction(groupMetadata)` API to fail with old version of brokers for the sake of making the application easier to adapt between versions. This PR silently downgrade the TxnOffsetCommit API when the build version is small than 3.
   
   ### 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Producer should automatically downgrade CommitTxRequest
> -------------------------------------------------------
>
>                 Key: KAFKA-9776
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9776
>             Project: Kafka
>          Issue Type: Improvement
>          Components: producer 
>    Affects Versions: 2.5.0
>            Reporter: Matthias J. Sax
>            Assignee: Boyang Chen
>            Priority: Critical
>
> When using transactions with a 2.5 producer against 2.4 (or older) brokers, it is not possible to call `producer.commitTransaction(..., ConsumerGroupMetadata)` but only the old API `producer.commitTransaction(..., String applicationId)` is supported.
> This implies that a developer needs to know the broker version when writing an application or write additional code to call the one or the other API depending on the broker version (the developer would need to write code to figure out the broker version, too).
> We should change the producer to automatically downgrade to the older CommitTxRequest if `commitTransaction(..., ConsumerGroupMetadata)` is used against older brokers to avoid an `UnsupportedVersionException`.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)