hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hairong Kuang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-5163) FSNamesystem#getRandomDatanode() should not use Replicator to choose a random datanode
Date Wed, 04 Feb 2009 00:45:59 GMT
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.


Mime
View raw message