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

Reply via email to