You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2009/05/20 00:55:45 UTC
[jira] Resolved: (HADOOP-5163) FSNamesystem#getRandomDatanode()
should not use Replicator to choose a random datanode
[ https://issues.apache.org/jira/browse/HADOOP-5163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE resolved HADOOP-5163.
--------------------------------------------
Resolution: Duplicate
This duplicates HADOOP-5595.
> 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.