Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 63037 invoked from network); 26 Jan 2009 20:04:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jan 2009 20:04:28 -0000 Received: (qmail 6174 invoked by uid 500); 26 Jan 2009 20:04:21 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 6157 invoked by uid 500); 26 Jan 2009 20:04:21 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 6139 invoked by uid 99); 26 Jan 2009 20:04:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 12:04:20 -0800 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 20:04:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D3E9A234C4B7 for ; Mon, 26 Jan 2009 12:03:59 -0800 (PST) Message-ID: <1453613028.1233000239866.JavaMail.jira@brutus> Date: Mon, 26 Jan 2009 12:03:59 -0800 (PST) From: "Hairong Kuang (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-5034) NameNode should send both both replication and deletion requests to DataNode in one reply to a heartbeat In-Reply-To: <377040628.1231961462146.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hairong Kuang updated HADOOP-5034: ---------------------------------- Attachment: (was: blockTransferInvalidate2.patch) > NameNode should send both both replication and deletion requests to DataNode in one reply to a heartbeat > -------------------------------------------------------------------------------------------------------- > > Key: HADOOP-5034 > URL: https://issues.apache.org/jira/browse/HADOOP-5034 > Project: Hadoop Core > Issue Type: New Feature > Components: dfs > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Fix For: 0.21.0 > > Attachments: blockTransferInvalidate.patch, blockTransferInvalidate1.patch > > > Currently NameNode favors block replication requests over deletion requests. On reply to a heartbeat, NameNode does not send a block deletion request unless there is no block replication request. > This brings a problem when a near-full cluster loses a bunch of DataNodes. In react to the DataNode loss, NameNode starts to replicate blocks. However, replication takes a lot of cpu and a lot of replications fail because of the lack of disk space. So the administrator tries to delete some DFS files to free up space. However, block deletion requests get delayed for very long time because it takes a long time to drain the block replication requests for most DataNodes. > I'd like to propose to let NameNode to send both replication requests and deletion requests to DataNodes in one reply to a heartbeat. This also implies that the replication monitor should schedule both replication and deletion work in one iteration. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.