Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4090

Close of OutputStream should be in finally clause in FlinkYarnSessionCli#writeYarnProperties()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

          try {
            OutputStream out = new FileOutputStream(propertiesFile);
            properties.store(out, "Generated YARN properties file");
            out.close();
          } catch (IOException e) {
      

      The close of out should be in finally cluase.

      Attachments

        Issue Links

          Activity

            People

              mxm Maximilian Michels
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: