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 1428018542 for ; Fri, 14 Aug 2015 13:58:52 +0000 (UTC) Received: (qmail 96562 invoked by uid 500); 14 Aug 2015 13:58:51 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 96509 invoked by uid 500); 14 Aug 2015 13:58: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 96495 invoked by uid 99); 14 Aug 2015 13:58:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 13:58:51 +0000 Date: Fri, 14 Aug 2015 13:58:51 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7225) Remove stale block invalidation work when DN re-registers with different UUID 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-7225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14697036#comment-14697036 ] Hudson commented on HDFS-7225: ------------------------------ FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #284 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/284/]) HDFS-7225. Remove stale block invalidation work when DN re-registers with different UUID. (Zhe Zhang and Andrew Wang) (vinayakumarb: rev 08bd4edf4092901273da0d73a5cc760fdc11052b) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt > Remove stale block invalidation work when DN re-registers with different UUID > ----------------------------------------------------------------------------- > > Key: HDFS-7225 > URL: https://issues.apache.org/jira/browse/HDFS-7225 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.6.0 > Reporter: Zhe Zhang > Assignee: Zhe Zhang > Fix For: 2.7.0, 2.6.1 > > Attachments: HDFS-7225-v1.patch, HDFS-7225-v2.patch, HDFS-7225-v3.patch, HDFS-7225.004.patch, HDFS-7225.005.patch > > > {{BlockManager#invalidateWorkForOneNode}} looks up a DataNode by the {{datanodeUuid}} and passes the resultant {{DatanodeDescriptor}} to {{InvalidateBlocks#invalidateWork}}. However, if a wrong or outdated {{datanodeUuid}} is used, a null pointer will be passed to {{invalidateWork}} which will use it to lookup in a {{TreeMap}}. Since the key type is {{DatanodeDescriptor}}, key comparison is based on the IP address. A null key will crash the NameNode with an NPE. -- This message was sent by Atlassian JIRA (v6.3.4#6332)