You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Yongjun Zhang (JIRA)" <ji...@apache.org> on 2015/05/14 02:16:00 UTC

[jira] [Created] (HDFS-8396) NPE exception can be thrown in DatanodeManager#sortLocatedBlocks

Yongjun Zhang created HDFS-8396:
-----------------------------------

             Summary: NPE exception can be thrown in DatanodeManager#sortLocatedBlocks
                 Key: HDFS-8396
                 URL: https://issues.apache.org/jira/browse/HDFS-8396
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Yongjun Zhang
            Assignee: Yongjun Zhang


{DNSToSwitchMapping#resolve}}  could return null, thus causing {{DatanodeManager#sortLocatedBlocks}} to throw NPE, because of its call to {{String rName = dnsToSwitchMapping.resolve(hosts).get(0);}}

The real failure reason is not obvious to user.

Creating this jira to make the error reporting more user friendly.






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)