Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13319

Do not send AddOffsetsToTxn/TxnOffsetCommit if offsets map is empty

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • None

    Description

      If a user calls `Producer.sendOffsetsToTransaction` with an empty map of offsets, we can shortcut return and skip the logic to add the offsets topic to the transaction. The main benefit is avoiding the unnecessary accumulation of markers in __consumer_offsets.

      Attachments

        Issue Links

          Activity

            People

              guozhang Guozhang Wang
              hachikuji Jason Gustafson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: