You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2017/07/01 10:09:00 UTC

[jira] [Closed] (FLINK-5488) yarnClient should be closed in AbstractYarnClusterDescriptor for error conditions

     [ https://issues.apache.org/jira/browse/FLINK-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler closed FLINK-5488.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.2
                   1.4.0

1.3: 17c5de5a35b4fa72e3636539dfec2cd9135ef91d
1.4: 3d2f3f65f6d0722a3b93565846f31a5dd28218d1

> yarnClient should be closed in AbstractYarnClusterDescriptor for error conditions
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-5488
>                 URL: https://issues.apache.org/jira/browse/FLINK-5488
>             Project: Flink
>          Issue Type: Bug
>          Components: YARN
>            Reporter: Ted Yu
>            Assignee: Fang Yong
>             Fix For: 1.4.0, 1.3.2
>
>
> Here is one example:
> {code}
>     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);
>     }
> {code}
> yarnClient implements Closeable.
> It should be closed in situations where exception is thrown.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)