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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment