[ 
https://issues.apache.org/jira/browse/YARN-998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15215741#comment-15215741
 ] 

Brahma Reddy Battula commented on YARN-998:
-------------------------------------------

calling {{rm.drainEvents();}} after registerNode should be fine I think..
{code}
try {
      // register the same node third time, this time the register resource
      // should work.
      rm.registerNode("h1:1234", 8192, 8);
      rm.drainEvents();
    } catch (Exception ex) {
      fail("Should not get any exceptions");
    }
{code}


> Keep NM resource updated through dynamic resource config for RM/NM restart
> --------------------------------------------------------------------------
>
>                 Key: YARN-998
>                 URL: https://issues.apache.org/jira/browse/YARN-998
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: graceful, nodemanager, scheduler
>            Reporter: Junping Du
>            Assignee: Junping Du
>             Fix For: 2.8.0
>
>         Attachments: YARN-998-sample.patch, YARN-998-v1.patch, 
> YARN-998-v2.1.patch, YARN-998-v2.patch, YARN-998-v3.patch
>
>
> When NM is restarted by plan or from a failure, previous dynamic resource 
> setting should be kept for consistency.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to