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

Combine streams `onAssignment` with `partitionsAssigned` task creation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • streams
    • None

    Description

      Task manager needs to call `createTasks` inside partitionsAssigned callback, which is after the `onAssignment` callback for assignor. This means during task creation we rely on the status change based on the intermediate data structures populated by a different callback, which is hard to reason about. We should consider consolidate logics to either one of the callbacks, prefer `onAssignment` as it contains full information needed.

      Attachments

        Activity

          People

            guozhang Guozhang Wang
            bchen225242 Boyang Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: