You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Vinay (JIRA)" <ji...@apache.org> on 2013/11/29 03:33:35 UTC
[jira] [Created] (HDFS-5581) NameNodeFsck should use only one
instance of BlockPlacementPolicy
Vinay created HDFS-5581:
---------------------------
Summary: NameNodeFsck should use only one instance of BlockPlacementPolicy
Key: HDFS-5581
URL: https://issues.apache.org/jira/browse/HDFS-5581
Project: Hadoop HDFS
Issue Type: Bug
Components: namenode
Reporter: Vinay
Assignee: Vinay
While going through NameNodeFsck I found that following code creates the new instance of BlockPlacementPolicy for every block.
{code} // verify block placement policy
BlockPlacementStatus blockPlacementStatus =
BlockPlacementPolicy.getInstance(conf, null, networktopology).
verifyBlockPlacement(path, lBlk, targetFileReplication);{code}
It would be better to use the namenode's BPP itself instead of creating a new one.
--
This message was sent by Atlassian JIRA
(v6.1#6144)