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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Shang Yuanchun (Jira)
Ted Yu created FLINK-4090:
-----------------------------

             Summary: 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)