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

Combine streams `onAssignment` with `partitionsAssigned` task creation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: streams
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: