You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Gour Saha (JIRA)" <ji...@apache.org> on 2017/03/09 06:30:39 UTC
[jira] [Assigned] (SLIDER-925) SliderClient set
KEY_AM_RESTART_LIMIT = 0 does not work if not changing
YarnConfiguration.RM_AM_MAX_ATTEMPTS
[ https://issues.apache.org/jira/browse/SLIDER-925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gour Saha reassigned SLIDER-925:
--------------------------------
Assignee: Chen He
> SliderClient set KEY_AM_RESTART_LIMIT = 0 does not work if not changing YarnConfiguration.RM_AM_MAX_ATTEMPTS
> ------------------------------------------------------------------------------------------------------------
>
> Key: SLIDER-925
> URL: https://issues.apache.org/jira/browse/SLIDER-925
> Project: Slider
> Issue Type: Bug
> Components: appmaster
> Affects Versions: Slider 0.80
> Reporter: Chen He
> Assignee: Chen He
> Priority: Minor
> Fix For: Slider 1.0.0
>
> Attachments: SLIDER-925.WIP.patch
>
>
> In SliderClient:
>
> int maxAppAttempts = config.getInt(KEY_AM_RESTART_LIMIT, 0);
> amLauncher.setMaxAppAttempts(maxAppAttempts);
> In RMAppImpl:
> int globalMaxAppAttempts = conf.getInt(YarnConfiguration.RM_AM_MAX_ATTEMPTS,
> YarnConfiguration.DEFAULT_RM_AM_MAX_ATTEMPTS);
> int individualMaxAppAttempts = submissionContext.getMaxAppAttempts();
> if (individualMaxAppAttempts <= 0 ||
> individualMaxAppAttempts > globalMaxAppAttempts) {
> this.maxAppAttempts = globalMaxAppAttempts;
> LOG.warn("The specific max attempts: " + individualMaxAppAttempts
> + " for application: " + applicationId.getId()
> + " is invalid, because it is out of the range [1, "
> + globalMaxAppAttempts + "]. Use the global max attempts instead.");
> } else {
> this.maxAppAttempts = individualMaxAppAttempts;
> }
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)