[
https://issues.apache.org/jira/browse/FLINK-5390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephan Ewen resolved FLINK-5390.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
Fixed via 9f7ad84abf7f1c33c4ee40be1eb0297a28a30f57
Thank you for the contribution!
> input should be closed in finally block in
> YarnFlinkApplicationMasterRunner#loadJobGraph()
> ------------------------------------------------------------------------------------------
>
> Key: FLINK-5390
> URL: https://issues.apache.org/jira/browse/FLINK-5390
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Roman Maier
> Priority: Minor
> Fix For: 1.3.0
>
>
> {code}
> FileInputStream input = new FileInputStream(fp);
> ObjectInputStream obInput = new ObjectInputStream(input);
> jg = (JobGraph) obInput.readObject();
> input.close();
> {code}
> If readObject() throws exception, input would be left unclosed.
> Similar issue is in AbstractYarnClusterDescriptor#startAppMaster() around
> line 726.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)