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 (JIRA)" <ji...@apache.org> on 2012/06/27 09:03:43 UTC
[jira] [Commented] (CASSANDRA-4359) Using IPv6 under Windows 7
says: "Address family not supported by protocol family"
[ https://issues.apache.org/jira/browse/CASSANDRA-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402005#comment-13402005 ]
Jonathan Ellis commented on CASSANDRA-4359:
-------------------------------------------
http://bugs.sun.com/view_bug.do?bug_id=6230761 suggests that this should be fixed with jdk7, did you try that?
> 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