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)