hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-3216) DatanodeID should support multiple IP addresses
Date Mon, 09 Apr 2012 01:11:16 GMT

    [ https://issues.apache.org/jira/browse/HDFS-3216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249640#comment-13249640

Todd Lipcon commented on HDFS-3216:

Should we deprecate this function? Or do we need some concept of the "canonical"/"main" IP
address? If the latter, we should explain this in the javadoc of this function.

   public String getIpAddr() {
   -    return ipAddr;
   +    return ipAddrs[0];
   +  }


- is it ever valid to construct a DatanodeID with no IP addresses? If not we should add a
Preconditions check or at least an assert on the length of the ipAddrs array in the constructor
and the setter


+    return new DatanodeID(ipAddrs.toArray(new String[ipAddrs.size()]) , dn.getHostName(),
         dn.getXferPort(), dn.getInfoPort(), dn.getIpcPort());
Can you re-wrap this to 80chars?


- Is the code change in JsonUtil covered by TestJsonUtil? (are you sure that the cast to String[]
is right?)

- in some of the tests, it's filling in hostnames instead of IPs for the ipAddrs field. Is
that right, or do we expect that it will always be resolved IPs? The dual nature makes me

> DatanodeID should support multiple IP addresses
> -----------------------------------------------
>                 Key: HDFS-3216
>                 URL: https://issues.apache.org/jira/browse/HDFS-3216
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Eli Collins
>            Assignee: Eli Collins
>         Attachments: hdfs-3216.txt
> The DatanodeID has a single field for the IP address, for HDFS-3146 we need to extend
it to support multiple addresses.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message