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 035C69F75 for ; Fri, 6 Apr 2012 22:38:39 +0000 (UTC) Received: (qmail 48866 invoked by uid 500); 6 Apr 2012 22:38:38 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 48827 invoked by uid 500); 6 Apr 2012 22:38:38 -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 48801 invoked by uid 99); 6 Apr 2012 22:38:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 22:38:38 +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; Fri, 06 Apr 2012 22:38:36 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 701A335361E for ; Fri, 6 Apr 2012 22:38:15 +0000 (UTC) Date: Fri, 6 Apr 2012 22:38:15 +0000 (UTC) From: "Eli Collins (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1189488699.307.1333751895471.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1513649360.25560.1333743562169.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-3224) Bug in check for DN re-registration with different storage ID 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-3224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249008#comment-13249008 ] Eli Collins commented on HDFS-3224: ----------------------------------- Btw here was the code before HDFS-3144. Host2NodesMap was using getHost which is the "name" w/o port {code} - String host = node.getHost(); + String ipAddr = node.getIpAddr(); {code} and DatanodeManager was doing lookups with the "name" {code} - DatanodeDescriptor nodeN = getDatanodeByHost(nodeReg.getName()); + DatanodeDescriptor nodeN = getDatanodeByHost(nodeReg.getXferAddr()); {code} > Bug in check for DN re-registration with different storage ID > ------------------------------------------------------------- > > Key: HDFS-3224 > URL: https://issues.apache.org/jira/browse/HDFS-3224 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Eli Collins > Priority: Minor > > DatanodeManager#registerDatanode checks the host to node map using an IP:port key, however the map is keyed on IP, so this check will always fail. It's performing the check to determine if a DN with the same IP and storage ID has already registered, and if so to remove this DN from the map and indicate that eg it's no longer hosting these blocks. This bug has been here forever. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira