hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HDFS-3232) Cleanup DatanodeInfo vs DatanodeID handling in DN servlets
Date Fri, 31 Aug 2012 03:53:11 GMT

     [ https://issues.apache.org/jira/browse/HDFS-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Eli Collins reassigned HDFS-3232:

    Assignee:     (was: Eli Collins)
> Cleanup DatanodeInfo vs DatanodeID handling in DN servlets
> ----------------------------------------------------------
>                 Key: HDFS-3232
>                 URL: https://issues.apache.org/jira/browse/HDFS-3232
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Eli Collins
>            Priority: Minor
>              Labels: newbie
> The DN servlets currently have code like the following:
> {code}
>       final String hostname = host instanceof DatanodeInfo 
>           ? ((DatanodeInfo)host).getHostName() : host.getIpAddr();
> {code}
> 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).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message