Ivan, This patch has successively allowed tests to pass without me disabling ipv6.
Thank you, Gabriel On Thu, Jun 14, 2012 at 12:02 PM, Ivan Kelly <[email protected]> wrote: > Ah, it's as I thought. The code for generating the identifier for a > bookie, uses InetAddress.getLocalHost().getHostAddress(), which in > this case will get centos and resolve it to ::1 > > Could you try enabling ipv6 again and testing with the patch on > https://issues.apache.org/jira/browse/BOOKKEEPER-298 > > -Ivan > > > > On Thu, Jun 14, 2012 at 11:38:09AM -0400, gabriel russell wrote: > > Hi Ivan, > > > > [grussell@centos ~]$ cat /etc/hosts > > 127.0.0.1 localhost.localdomain localhost > > ::1 centos localhost6.localdomain6 localhost6 > > [grussell@centos ~]$ hostname > > centos > > > > > > Thank you, > > Gabriel > > > > On Thu, Jun 14, 2012 at 7:20 AM, Ivan Kelly <[email protected]> wrote: > > > > > Hi Gabriel, > > > > > > Could you post the content of your /etc/hosts and the output of the > > > hostname command? > > > > > > I've reproduced this locally, and have an idea of how to fix it > > > without having to completely disable ipv6, but i'd like to confirm > > > that your problem is a manifestation of the same thing first. > > > > > > -Ivan > > > > > > > > > On Tue, Jun 12, 2012 at 07:19:07PM -0400, gabriel russell wrote: > > > > So, to confirm what you all have suspected, I disabled ipv6 > > > > > > > > echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 > > > > /etc/init.d/network restart > > > > > > > > and made the tests just start working perfectly > > > > > > > > Running org.apache.bookkeeper.client.TestReadTimeout > > > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > 17.338 > > > sec > > > > Running org.apache.bookkeeper.client.BookKeeperTest > > > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > 11.746 > > > sec > > > > ... > > > > > > > > > > > > Thank you all for your help. > > > > > > > > Gabriel Russell > > > > > > > > On Tue, Jun 12, 2012 at 12:26 PM, Ivan Kelly <[email protected]> > wrote: > > > > > > > > > Thats why I asked about the net.ipv6.bindv6only value. That seems > ok > > > > > though. I would expect -Djava.net.preferIPv4Stack=true to make java > > > > > use the ipv4 stack though. It's strange. > > > > > > > > > > @Gabriel, do these machines have an ipv4 stack? > > > > > > > > > > -Ivan > > > > > > > > >
