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

yarnClient should be closed in AbstractYarnClusterDescriptor for error conditions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.2, 1.4.0
    • Component/s: YARN
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: