FSNamesystem#getRandomDatanode() should not use Replicator to choose a random 
datanode
--------------------------------------------------------------------------------------

                 Key: HADOOP-5163
                 URL: https://issues.apache.org/jira/browse/HADOOP-5163
             Project: Hadoop Core
          Issue Type: Improvement
          Components: dfs
            Reporter: Hairong Kuang
             Fix For: 0.21.0


Below is the code:
  public DatanodeDescriptor getRandomDatanode() {
    return replicator.chooseTarget(1, null, null, 0)[0];
  }
Using Replicator to choose a random datanode is an overkill. It is very 
expensive and unnecessary. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to