You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Gerben Kegel (JIRA)" <ji...@apache.org> on 2012/06/20 12:52:43 UTC
[jira] [Created] (CASSANDRA-4359) Using IPv6 under Windows 7 says:
"Address family not supported by protocol family"
Gerben Kegel created CASSANDRA-4359:
---------------------------------------
Summary: 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
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
[jira] [Commented] (CASSANDRA-4359) Using IPv6 under Windows 7
says: "Address family not supported by protocol family"
Posted by "Gerben Kegel (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CASSANDRA-4359) Using IPv6 under Windows 7
says: "Address family not supported by protocol family"
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (CASSANDRA-4359) Using IPv6 under Windows 7 says:
"Address family not supported by protocol family"
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-4359.
---------------------------------------
Resolution: Not A Problem
> 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