Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3232

Cleanup DatanodeInfo vs DatanodeID handling in DN servlets

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The DN servlets currently have code like the following:

            final String hostname = host instanceof DatanodeInfo 
                ? ((DatanodeInfo)host).getHostName() : host.getIpAddr();
      

      I believe this outdated, that we now always get one or the other (at least when not running the tests). Need to verify that. We should clean this code up as well, eg always use the IP (which we'll lookup the FQDN for) since the hostname isn't necessarily valid to put in a URL (the DN hostname isn't necesarily a FQDN).

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development