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

Cleanup DatanodeInfo vs DatanodeID handling in DN servlets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            eli2 Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: