hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Homan (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HADOOP-5163) FSNamesystem#getRandomDatanode() should not use Replicator to choose a random datanode
Date Wed, 06 May 2009 22:50:31 GMT

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

Jakob Homan reassigned HADOOP-5163:
-----------------------------------

    Assignee: Jakob Homan

> 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
>            Assignee: Jakob Homan
>             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