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 53D7517E14 for ; Sun, 9 Nov 2014 06:31:39 +0000 (UTC) Received: (qmail 10016 invoked by uid 500); 9 Nov 2014 06:31:34 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 9954 invoked by uid 500); 9 Nov 2014 06:31:34 -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 9933 invoked by uid 99); 9 Nov 2014 06:31:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2014 06:31:34 +0000 Date: Sun, 9 Nov 2014 06:31:34 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7382) DataNode in secure mode may throw NullPointerException if client connects before DataNode registers itself with NameNode. 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-7382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14203796#comment-14203796 ] Hudson commented on HDFS-7382: ------------------------------ FAILURE: Integrated in Hadoop-trunk-Commit #6494 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/6494/]) HDFS-7382. DataNode in secure mode may throw NullPointerException if client connects before DataNode registers itself with NameNode. Contributed by Chris Nauroth. (cnauroth: rev 9ba8d8c7eb65eeb6fe673f04e493d9eedd95a822) * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferServer.java * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt > DataNode in secure mode may throw NullPointerException if client connects before DataNode registers itself with NameNode. > ------------------------------------------------------------------------------------------------------------------------- > > Key: HDFS-7382 > URL: https://issues.apache.org/jira/browse/HDFS-7382 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode, security > Reporter: Chris Nauroth > Assignee: Chris Nauroth > Priority: Minor > Attachments: HDFS-7382.1.patch, HDFS-7382.2.patch > > > {{SaslDataTransferServer#receive}} needs to check if the DataNode is listening on a privileged port. It does this by checking the address from the {{DatanodeID}}. However, there is a window of time when this will be {{null}}. If a client is still holding a {{LocatedBlock}} that references that DataNode and chooses to connect, then there is a risk of getting a {{NullPointerException}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)