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

yarnClient should be closed in AbstractYarnClusterDescriptor for error conditions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.2, 1.4.0
    • Deployment / YARN
    • None

    Description

      Here is one example:

          if(jobManagerMemoryMb > maxRes.getMemory() ) {
            failSessionDuringDeployment(yarnClient, yarnApplication);
            throw new YarnDeploymentException("The cluster does not have the requested resources for the JobManager available!\n"
              + "Maximum Memory: " + maxRes.getMemory() + "MB Requested: " + jobManagerMemoryMb + "MB. " + NOTE);
          }
      

      yarnClient implements Closeable.
      It should be closed in situations where exception is thrown.

      Attachments

        Activity

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

          People

            zjureel Fang Yong
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment