Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-8587 One producer per thread for Kafka Streams EOS
  3. KAFKA-9776

Producer could automatically downgrade TxnOffsetCommitRequest with internal flag

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6.0
    • None
    • producer
    • None

    Description

      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 TxnOffsetCommitRequest if `commitTransaction(..., ConsumerGroupMetadata)` is used against older brokers to avoid an `UnsupportedVersionException`.

      Attachments

        Issue Links

          Activity

            People

              bchen225242 Boyang Chen
              mjsax Matthias J. Sax
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: