[ https://issues.apache.org/jira/browse/HDFS-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14065458#comment-14065458 ]
Allen Wittenauer commented on HDFS-122: --------------------------------------- I suspect this a bit stale and can probably be closed. Anyone? > Namenode should let Datanode decide how to delete blocks. > --------------------------------------------------------- > > Key: HDFS-122 > URL: https://issues.apache.org/jira/browse/HDFS-122 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Raghu Angadi > > See HADOOP-2576 and HADOOP-774 for more discussion. > Namenode throttles the number of blocks it asks Datanode to delete. It does > this because it "knows" that Datanode deletes these blocks in the same thread > that heartbeats and does not want that thread to block for long. Managing > this is more memory and more code at Namenode. > I think namenode should just ask Datanode to delete the blocks and Datanode > can decide how it deletes them. It would be datanode's responsibility to > properly delete the blocks however it sees fit. For e.g. it could delete them > in separate thread and not let heartbeats affected by this. -- This message was sent by Atlassian JIRA (v6.2#6252)