hadoop-yarn-dev 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-6589) Recover all resources when NM restart
Date Fri, 12 May 2017 05:22:05 GMT
Yang Wang created YARN-6589:
-------------------------------

             Summary: Recover all resources when NM restart
                 Key: YARN-6589
                 URL: https://issues.apache.org/jira/browse/YARN-6589
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Yang Wang


When NM restart, containers will be recovered. However, only memory and vcores in capability
have been recovered. All resources need to be recovered.
{code:title=ContainerImpl.java}
      // resource capability had been updated before NM was down
      this.resource = Resource.newInstance(recoveredCapability.getMemorySize(),
          recoveredCapability.getVirtualCores());
{code}

It should be like this.

{code:title=ContainerImpl.java}
      // resource capability had been updated before NM was down
      // need to recover all resources, not only <mem, vcores>
      this.resource = Resources.clone(recoveredCapability);
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message