hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-165) NPE in datanode.handshake()
Date Sat, 09 Jan 2010 13:46:54 GMT

    [ https://issues.apache.org/jira/browse/HDFS-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798352#action_12798352
] 

Steve Loughran commented on HDFS-165:
-------------------------------------

One problem could be in BlocksMap.NodeIterator. It's hasNext() method checks the next entry
isn't null. But what if between the hasNext() call and the next() operation, the map changes
and an entry goes away? In that situation, the node returned from next() will be null. 

Filing a new bug...

> NPE in datanode.handshake()
> ---------------------------
>
>                 Key: HDFS-165
>                 URL: https://issues.apache.org/jira/browse/HDFS-165
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.1
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: HDFS-165.patch
>
>
> It appears possible to raise an NPE in DataNode.handshake() if the startup protocol gets
interrupted or fails in some manner

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message