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

Ordering of operations in StreamThread.shutdownTasksAndState may void at-least-once guarantees

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.0
    • 0.10.2.0
    • streams
    • None

    Description

      In shutdownTasksAndState we currently commit offsets as the first step. If a subsequent step throws an exception, i.e, flushing the producer, then this would violate the at-least-once guarantees.
      We need to commit after all other state has been flushed

      Attachments

        Issue Links

          Activity

            People

              damianguy Damian Guy
              damianguy Damian Guy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: