hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chengbing Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-3160) Non-atomic operation on nodeUpdateQueue in RMNodeImpl
Date Mon, 09 Feb 2015 12:52:35 GMT
Chengbing Liu created YARN-3160:

             Summary: Non-atomic operation on nodeUpdateQueue in RMNodeImpl
                 Key: YARN-3160
                 URL: https://issues.apache.org/jira/browse/YARN-3160
             Project: Hadoop YARN
          Issue Type: Bug
          Components: resourcemanager
    Affects Versions: 2.7.0
            Reporter: Chengbing Liu
            Assignee: Chengbing Liu

while(nodeUpdateQueue.peek() != null){
The above code brings potential risk of adding null value to {{latestContainerInfoList}}.
Since {{ConcurrentLinkedQueue}} implements a wait-free algorithm, we can directly poll the
queue, before checking whether the value is null.

This message was sent by Atlassian JIRA

View raw message