You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "zhijiang (JIRA)" <ji...@apache.org> on 2019/02/21 07:09:03 UTC

[jira] [Created] (FLINK-11707) Make InputGate interface extend AutoCloseable

zhijiang created FLINK-11707:
--------------------------------

             Summary: Make InputGate interface extend AutoCloseable
                 Key: FLINK-11707
                 URL: https://issues.apache.org/jira/browse/FLINK-11707
             Project: Flink
          Issue Type: Sub-task
          Components: Network
            Reporter: zhijiang
            Assignee: zhijiang
             Fix For: 1.9.0


This is a sub-task for refactoring the interface of {{InputGate}} which would be created by {{ShuffleService}} future. So it is reasonable to reference with general InputGate anywhere instead of specific `SingleInputGate`.

To make {{InputGate}} extend {{AutoCloseable}} interface, the {{TaskCanceler}} could call {{InputGate#close}} instead of {{SingleInputGate#releaseAllResources}}.

Next we can further remove the reference with {{SingleInputGate}} in {{Task}} class by refactoring the {{updatePartitionInfo}} into {{NetworkEnvironment}}.



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