Karthik Kambatla created YARN-6582:
--------------------------------------

             Summary: FSAppAttempt demand can be updated atomically in 
updateDemand()
                 Key: YARN-6582
                 URL: https://issues.apache.org/jira/browse/YARN-6582
             Project: Hadoop YARN
          Issue Type: Improvement
            Reporter: Karthik Kambatla
            Assignee: Karthik Kambatla


FSAppAttempt#updateDemand first sets demand to 0, and then adds up all the 
outstanding requests. Instead, we could use another variable tmpDemand to build 
the new value and atomically replace the demand.



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

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

Reply via email to