hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng Yuan (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (YARN-4397) if this addAll() function`s params is fault? @NodeListManager#getUnusableNodes()
Date Thu, 03 Dec 2015 07:21:10 GMT

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

Feng Yuan resolved YARN-4397.
-----------------------------
    Resolution: Not A Problem

> if this addAll() function`s params is fault? @NodeListManager#getUnusableNodes()
> --------------------------------------------------------------------------------
>
>                 Key: YARN-4397
>                 URL: https://issues.apache.org/jira/browse/YARN-4397
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 2.6.0
>            Reporter: Feng Yuan
>             Fix For: 2.8.0
>
>
> code in NodeListManager#144L:
>   /**
>    * Provides the currently unusable nodes. Copies it into provided collection.
>    * @param unUsableNodes
>    *          Collection to which the unusable nodes are added
>    * @return number of unusable nodes added
>    */
>   public int getUnusableNodes(Collection<RMNode> unUsableNodes) {
>     unUsableNodes.addAll(unusableRMNodesConcurrentSet);
>     return unusableRMNodesConcurrentSet.size();
>   }
> unUsableNodes and unusableRMNodesConcurrentSet's sequence is wrong.



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

Mime
View raw message