Chen He created SLIDER-925:
------------------------------

             Summary: SliderClient set KEY_AM_RESTART_LIMIT = 0 does not effect 
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


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.4#6332)

Reply via email to