Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8396

NPE exception can be thrown in DatanodeManager#sortLocatedBlocks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              yzhangal Yongjun Zhang
              yzhangal Yongjun Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: