[ 
https://issues.apache.org/jira/browse/CASSANDRA-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402039#comment-13402039
 ] 

Gerben Kegel commented on CASSANDRA-4359:
-----------------------------------------

No, I did not. We did not upgrade to Java 7 because we heard other components 
(Lucene) had problems with Java 7.

But I can get away with the answer: "You need Java 7 for IPv6 support".

Thanks
                
> Using IPv6 under Windows 7 says: "Address family not supported by protocol 
> family"
> ----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4359
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4359
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.1
>         Environment: Windows 7
>            Reporter: Gerben Kegel
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> You can not use IPv6 under Windows 7 because nio is not supported. You 
> receive an error: "Address family not supported by protocol family".
> Yuu can reproduce it by changing the rpc_address to "[::1]" and start 
> Cassandra under Windows 7
> A workaround is to disable nio while using IPv6 under Windows 7. (Other 
> windows versions might also be affected.) Example:
> {code:title=MessagingService.java}
> ServerSocket socket;
> if (nioSupported(localEp)) {
>   serverChannel = ServerSocketChannel.open();
>   socket = serverChannel.socket();
> } else {
>   socket = new ServerSocket();
> }
> private boolean nioSupported(InetAddress localEp) {
>   String os = System.getProperty("os.name");
>   return !(localEp instanceof Inet6Address && os.equals("Windows 7"));
> }
> {code}

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

        

Reply via email to