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

input should be closed in finally block in YarnFlinkApplicationMasterRunner#loadJobGraph()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

              FileInputStream input = new FileInputStream(fp);
              ObjectInputStream obInput = new ObjectInputStream(input);
              jg = (JobGraph) obInput.readObject();
              input.close();
      

      If readObject() throws exception, input would be left unclosed.

      Similar issue is in AbstractYarnClusterDescriptor#startAppMaster() around line 726.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                roman_maier Roman Maier
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: