You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org> on 2011/10/03 22:14:34 UTC

[jira] [Updated] (CASSANDRA-3211) Enhanced IP resolution for machines with multiple network interfaces

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

Jonathan Ellis updated CASSANDRA-3211:
--------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 0.8.5)
                       0.6
    
> Enhanced IP resolution for machines with multiple network interfaces 
> ---------------------------------------------------------------------
>
>                 Key: CASSANDRA-3211
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3211
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Hadoop
>    Affects Versions: 0.6
>         Environment: Mac OS X and Linux with machines that have multiple network interfaces whereby the IP associated with the split is not on the network interface associated with localhost.
>            Reporter: Brian ONeill
>            Priority: Minor
>             Fix For: 0.8.7
>
>         Attachments: trunk-3211.txt
>
>
> On unix machines that have multiple network interfaces whereby the IP associated with the split is not on the network interface associated with localhost, the getLocation method cannot find the proper IP and throws an exception "no connection available".
> I changed the implementation to use NetworkInterface instead of InetAddress using getLocalHost().
> This is more reliable.  See the following references:
> http://stackoverflow.com/questions/5813194/inetaddress-getlocalhost-does-not-return-expected-ip-address-from-c-windows-sy
> http://stackoverflow.com/questions/4871451/inetaddress-getlocalhost-returns-wrong-result-when-hostname-is-64-chars
> http://www.jguru.com/faq/view.jsp?EID=790132

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