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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: