[
https://issues.apache.org/jira/browse/FLINK-11707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler closed FLINK-11707.
------------------------------------
Resolution: Fixed
master: dd5ad2cbeff899b9cb51c176719fbdb31ed7570c
> Make InputGate interface extend AutoCloseable
> ---------------------------------------------
>
> Key: FLINK-11707
> URL: https://issues.apache.org/jira/browse/FLINK-11707
> Project: Flink
> Issue Type: Sub-task
> Components: Runtime / Network
> Reporter: zhijiang
> Assignee: zhijiang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.9.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)