From commits-return-21152-apmail-cassandra-commits-archive=cassandra.apache.org@cassandra.apache.org Sat Oct 30 12:50:47 2010 Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 24498 invoked from network); 30 Oct 2010 12:50:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Oct 2010 12:50:47 -0000 Received: (qmail 74114 invoked by uid 500); 30 Oct 2010 12:50:47 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 73949 invoked by uid 500); 30 Oct 2010 12:50:46 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 73887 invoked by uid 99); 30 Oct 2010 12:50:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 12:50:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 12:50:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9UCoKmb016221 for ; Sat, 30 Oct 2010 12:50:20 GMT Message-ID: <10655443.156281288443020704.JavaMail.jira@thor> Date: Sat, 30 Oct 2010 08:50:20 -0400 (EDT) From: "Hudson (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-628) java.net.SocketException: Invalid argument / java.net.NoRouteToHostException: Network is unreachable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926574#action_12926574 ] Hudson commented on CASSANDRA-628: ---------------------------------- Integrated in Cassandra #581 (See [https://hudson.apache.org/hudson/job/Cassandra/581/]) document CASSANDRA-628 change (prefer IPv4) Patch by eevans make -Djava.net.preferIPv4Stack=true default Patch by eevans for CASSANDRA-628 > java.net.SocketException: Invalid argument / java.net.NoRouteToHostException: Network is unreachable > ---------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-628 > URL: https://issues.apache.org/jira/browse/CASSANDRA-628 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.6.6, 0.7 beta 3 > Environment: Linux, FreeBSD, (possibly others) > Reporter: Eric Evans > Assignee: Eric Evans > Fix For: 0.7.0 > > > This manifests as either a SocketException that occurs when starting a cassandra node, or a NoRouteToHostException which occurs when connecting with a client. > On Linux systems this is caused by IPV6_V6ONLY being set true. The docs (ipv6(7)) say that when set this causes sockets to be created IPv6 only, while the previous behavior also allowed sending and receiving packets using an IPv4-mapped IPv6 address. > The quick fix is to either launch applications using the -Djava.net.preferIPv4Stack=true property, or on Linux systems set net.ipv6.bindv6only=0 (see sysctl(8)). > My limited understanding is that the previous behavior (IPV6_V6ONLY=0) was always considered a hack to be used until IPv6 was more mature/had gained traction and that a change in defaults was always inevitable, so in the long-term a Real Fix will be needed. > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342561 > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560056 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.