You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Ray Chiang (JIRA)" <ji...@apache.org> on 2016/05/23 20:39:12 UTC

[jira] [Updated] (YARN-5128) Investigate potential race condition in the scheduler nodeUpdate() method

     [ https://issues.apache.org/jira/browse/YARN-5128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ray Chiang updated YARN-5128:
-----------------------------
    Summary: Investigate potential race condition in the scheduler nodeUpdate() method  (was: Investigate potential race condition in the scheuduler nodeUpdate() method)

> Investigate potential race condition in the scheduler nodeUpdate() method
> -------------------------------------------------------------------------
>
>                 Key: YARN-5128
>                 URL: https://issues.apache.org/jira/browse/YARN-5128
>             Project: Hadoop YARN
>          Issue Type: Task
>            Reporter: Ray Chiang
>
> This section of code exists in the various schedulers in the method nodeUpdate():
> {code}
>     // If the node is decommissioning, send an update to have the total
>     // resource equal to the used resource, so no available resource to
>     // schedule.
>     // TODO: Fix possible race-condition when request comes in before
>     // update is propagated
>     if (nm.getState() == NodeState.DECOMMISSIONING) {
>       this.rmContext
>           .getDispatcher()
>           .getEventHandler()
>           .handle(
>               new RMNodeResourceUpdateEvent(nm.getNodeID(), ResourceOption
>                   .newInstance(getSchedulerNode(nm.getNodeID())
>                       .getAllocatedResource(), 0)));
>     }
> {code}
> Investigate the TODO section.



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

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