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

Kafka Streams should commit transaction when no records are processed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0, 3.2.1
    • 3.4.0
    • streams
    • None

    Description

      Currently, if there are no records to process in the input topic, a transaction does not commit. If a custom punctuator code is writing to a state store (which is common practice) the producer gets fenced when trying to write to the changelog topic. This throws a TaskMigratedException and causes a rebalance. 

      A better approach would be to commit a transaction even when there are no records processed as to allow the punctuator to make progress. 

      Attachments

        1. image-2023-02-08-10-22-20-456.png
          0.3 kB
          Sylvain Le Gouellec

        Issue Links

          Activity

            People

              ableegoldman A. Sophie Blee-Goldman
              vicky_papavas Vicky Papavasileiou
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: