hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7382) DataNode in secure mode may throw NullPointerException if client connects before DataNode registers itself with NameNode.
Date Sun, 09 Nov 2014 06:31:34 GMT

    [ 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)

Mime
View raw message