flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4090) Close of OutputStream should be in finally clause in FlinkYarnSessionCli#writeYarnProperties()
Date Mon, 20 Jun 2016 15:14:05 GMT

    [ https://issues.apache.org/jira/browse/FLINK-4090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15339679#comment-15339679
] 

ASF GitHub Bot commented on FLINK-4090:
---------------------------------------

Github user mxm commented on the issue:

    https://github.com/apache/flink/pull/2132
  
    Thank you for the pull request!


> 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
>            Priority: Minor
>
> {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)

Mime
View raw message