You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Boyang Chen (Jira)" <ji...@apache.org> on 2019/10/29 21:27:00 UTC

[jira] [Created] (KAFKA-9112) Combine streams `onAssignment` with `partitionsAssigned` task creation

Boyang Chen created KAFKA-9112:
----------------------------------

             Summary: Combine streams `onAssignment` with `partitionsAssigned` task creation
                 Key: KAFKA-9112
                 URL: https://issues.apache.org/jira/browse/KAFKA-9112
             Project: Kafka
          Issue Type: Improvement
            Reporter: Boyang Chen


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)