Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C541962EE for ; Tue, 2 Aug 2011 23:26:52 +0000 (UTC) Received: (qmail 68443 invoked by uid 500); 2 Aug 2011 23:26:52 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 68390 invoked by uid 500); 2 Aug 2011 23:26:51 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 68366 invoked by uid 99); 2 Aug 2011 23:26:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 23:26:51 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 23:26:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 789239E4E1 for ; Tue, 2 Aug 2011 23:26:27 +0000 (UTC) Date: Tue, 2 Aug 2011 23:26:27 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <2125115872.3228.1312327587490.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <486112114.39751.1308963768059.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2108) Move datanode heartbeat handling to BlockManager MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-2108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HDFS-2108: ----------------------------------------- Attachment: h2108_20110802.patch Hi Suresh, thanks for the comments. h2108_20110802.patch: see below. 1, 3, 4. done. 2. Why have heartbeatManager in BlockManager. Why not just DatanodeManager to removeDataNode, stop and start decommission etc.? Renamed BlockManager.removeDatanode(..) to removeBlocksAssociatedTo(..) and moved decommission related methods to DatanodeManager. > As much as possible, we should avoid getting HeartbeatManager from the DatanodeManager. Added an interface DatanodeStatistics so that HeartbeatManager can be changed from public to package private. > Move datanode heartbeat handling to BlockManager > ------------------------------------------------ > > Key: HDFS-2108 > URL: https://issues.apache.org/jira/browse/HDFS-2108 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: name-node > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Attachments: h2108_20110727.patch, h2108_20110727b.patch, h2108_20110801.patch, h2108_20110802.patch > > > Logically, datanodes should heartbeat to block manager instead of name system. Therefore, we should move datanode heartbeat handling code to {{BlockManager}}. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira