You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Zhe Zhang (JIRA)" <ji...@apache.org> on 2014/10/10 19:44:34 UTC

[jira] [Created] (HDFS-7225) Failed DataNode lookup can crash NameNode with NullPointerException

Zhe Zhang created HDFS-7225:
-------------------------------

             Summary: Failed DataNode lookup can crash NameNode with NullPointerException
                 Key: HDFS-7225
                 URL: https://issues.apache.org/jira/browse/HDFS-7225
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Zhe Zhang
            Assignee: Zhe Zhang


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