hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-6630) Container worker dir could not recover when NM restart
Date Mon, 22 May 2017 10:40:04 GMT
Yang Wang created YARN-6630:

             Summary: Container worker dir could not recover when NM restart
                 Key: YARN-6630
                 URL: https://issues.apache.org/jira/browse/YARN-6630
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Yang Wang

When ContainerRetryPolicy is NEVER_RETRY, container worker dir will not be saved in NM state
store. Then NM restarts, container.workDir is null, and may cause other exceptions.

  private void recordContainerWorkDir(ContainerId containerId,
      String workDir) throws IOException{
    if (container.isRetryContextSet()) {
      context.getNMStateStore().storeContainerWorkDir(containerId, workDir);

  static class ResourceLocalizedWhileRunningTransition
      extends ContainerTransition {
          String linkFile = new Path(container.workDir, link).toString();

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message