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 "Hudson (JIRA)" <ji...@apache.org> on 2016/03/01 22:35:18 UTC

[jira] [Commented] (YARN-4671) There is no need to acquire CS lock when completing a container

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

Hudson commented on YARN-4671:
------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #9404 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/9404/])
YARN-4671. There is no need to acquire CS lock when completing a (jianhe: rev 5c465df90414d43250d09084748ab2d41af44eea)
* hadoop-yarn-project/CHANGES.txt
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestCapacityScheduler.java
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java


> There is no need to acquire CS lock when completing a container
> ---------------------------------------------------------------
>
>                 Key: YARN-4671
>                 URL: https://issues.apache.org/jira/browse/YARN-4671
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: MENG DING
>            Assignee: MENG DING
>             Fix For: 2.8.0
>
>         Attachments: YARN-4671.1.patch, YARN-4671.2.patch
>
>
> In YARN-4519, we discovered that there is no need to acquire CS lock in CS#completedContainerInternal, because:
> * Access to critical section are already guarded by queue lock.
> * It is not essential to guard {{schedulerHealth}} with cs lock in completedContainerInternal. All maps in schedulerHealth are concurrent maps. Even if schedulerHealth is not consistent at the moment, it will be eventually consistent.
> With this fix, we can truly claim that CS#allocate doesn't require CS lock.



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