Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 16350 invoked from network); 22 Mar 2011 05:44:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 05:44:45 -0000 Received: (qmail 19100 invoked by uid 500); 22 Mar 2011 05:44:44 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 18970 invoked by uid 500); 22 Mar 2011 05:44:43 -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 18962 invoked by uid 99); 22 Mar 2011 05:44:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 05:44:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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, 22 Mar 2011 05:44:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C93F5415AF for ; Tue, 22 Mar 2011 05:44:05 +0000 (UTC) Date: Tue, 22 Mar 2011 05:44:05 +0000 (UTC) From: "Tanping Wang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1038643208.3276.1300772645821.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1935204847.2654.1300746305906.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-1773) Remove a datanode from cluster if include list is not empty and this datanode is removed from both include and exclude lists MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tanping Wang updated HDFS-1773: ------------------------------- Attachment: HDFS-1773-2.patch Discussed with Nicholas about the first approach by removing datanode from datanodeMap directly. The concern here is that datanodeMap is a super set that stores the datanode -> block map. If we remove the datanode from the datanodeMap, we are not certain if any potential negative impact would happen to some other related data structures whose relationship with datanodeMap is not that obvious. Plus, it seems that a dedicated function, wipeDatanode(DatanodeID nodeID) is being used to remove a node from datanodeMap. Since this is only for 20 release, ( decommission data states will be changed in next release of HDFS), we decide to only remove the decommission node from the list of dead nodes for displaying purpose only. That is to say, before displaying the list of dead node to either JSP or jmx, we check for decommissioned dead data node and remove them for displaying. We also add a check {code} node.isDecommissioned()) {code} to make sure before removing the data node from dead list, it is already decommissioned. > Remove a datanode from cluster if include list is not empty and this datanode is removed from both include and exclude lists > ---------------------------------------------------------------------------------------------------------------------------- > > Key: HDFS-1773 > URL: https://issues.apache.org/jira/browse/HDFS-1773 > Project: Hadoop HDFS > Issue Type: Improvement > Affects Versions: 0.20.203.1 > Environment: branch-20-security > Reporter: Tanping Wang > Assignee: Tanping Wang > Priority: Minor > Fix For: 0.20.4 > > Attachments: HDFS-1773-2.patch, HDFS-1773.patch > > > Our service engineering team who operates the clusters on a daily basis founds it is confusing that after a data node is decommissioned, there is no way to make the cluster forget about this data node and it always remains in the dead node list. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira