Feng Yuan created YARN-4397:

             Summary: if this addAll() function`s params is fault? 
                 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

Reply via email to