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

NPE exception can be thrown in DatanodeManager#sortLocatedBlocks

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: