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] [Created] (YARN-4397) if this addAll() function`s params is fault? @NodeListManager#getUnusableNodes()
Date Fri, 27 Nov 2015 03:27:11 GMT
Feng Yuan created YARN-4397:

             Summary: 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) {
    return unusableRMNodesConcurrentSet.size();

unUsableNodes and unusableRMNodesConcurrentSet's sequence is wrong.

This message was sent by Atlassian JIRA

View raw message