You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Andrey Zagrebin (JIRA)" <ji...@apache.org> on 2019/05/16 08:56:00 UTC

[jira] [Created] (FLINK-12530) Move Task.inputGatesById to NetworkEnvironment

Andrey Zagrebin created FLINK-12530:
---------------------------------------

             Summary: Move Task.inputGatesById to NetworkEnvironment
                 Key: FLINK-12530
                 URL: https://issues.apache.org/jira/browse/FLINK-12530
             Project: Flink
          Issue Type: Sub-task
          Components: Runtime / Network
            Reporter: Andrey Zagrebin
            Assignee: Andrey Zagrebin
             Fix For: 1.9.0


Task.inputGatesById indexes SingleInputGates by id. The end user of this indexing is NetworkEnviroment for two cases:

- SingleInputGate triggers producer partition readiness check and then the successful result of check is dispatched back to this SingleInputGate by id. We can just add an additional argument to TaskActions.triggerPartitionProducerStateCheck. The argument is an immediate callback to that SingleInputGate. Then inputGatesById is not needed for dispatching.

- TaskExecutor.updatePartitions uses inputGatesById to dispatch PartitionInfo update to the right SingleInputGate. If inputGatesById is moved to NetworkEnviroment, which should be a better place for gate management, and add NetworkEnviroment.updatePartitionInfo then TaskExecutor.updatePartitions could directly call NetworkEnviroment.updatePartitionInfo.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)