You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Maximilian Michels (JIRA)" <ji...@apache.org> on 2016/06/20 15:23:05 UTC

[jira] [Closed] (FLINK-4090) Close of OutputStream should be in finally clause in FlinkYarnSessionCli#writeYarnProperties()

     [ https://issues.apache.org/jira/browse/FLINK-4090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maximilian Michels closed FLINK-4090.
-------------------------------------
    Resolution: Fixed

Fixed with f2e9c521aa4e0cbc14b71c561b8c5dd46201a45a

> Close of OutputStream should be in finally clause in FlinkYarnSessionCli#writeYarnProperties()
> ----------------------------------------------------------------------------------------------
>
>                 Key: FLINK-4090
>                 URL: https://issues.apache.org/jira/browse/FLINK-4090
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Maximilian Michels
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> {code}
>     try {
>       OutputStream out = new FileOutputStream(propertiesFile);
>       properties.store(out, "Generated YARN properties file");
>       out.close();
>     } catch (IOException e) {
> {code}
> The close of out should be in finally cluase.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)