You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bookkeeper.apache.org by gabriel russell <ga...@wiccatech.com> on 2012/06/12 07:23:10 UTC
when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
I've posted here:
http://wiccatech.com/mvn-test-output.txt
the output of me running
mvn test -Dsurefire.useFile=false
It's very long so I'm not including it in the email, but here is a snippet:
Running org.apache.bookkeeper.client.TestReadTimeout
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.709 sec
<<< FAILURE!
testReadTimeout(org.apache.bookkeeper.client.TestReadTimeout) Time elapsed:
1.5 sec <<< ERROR!
org.apache.bookkeeper.client.BKException$ZKException
at org.apache.bookkeeper.client.BKException.create(BKException.java:64)
at org.apache.bookkeeper.client.BookKeeper.createLedger(BookKeeper.java:324)
at
org.apache.bookkeeper.client.TestReadTimeout.testReadTimeout(TestReadTimeout.java:64)
I'm very new to bookkeeper and am just trying to get it running. I'd
appreciate any hint on figuring out what's wrong.
Thanks
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
[grussell@centos bookkeeper]$ /sbin/sysctl -n net.ipv6.bindv6only
0
On Tue, Jun 12, 2012 at 9:28 AM, Ivan Kelly <iv...@apache.org> wrote:
> > I'm not running a zookeeper ensemble. I shouldn't be right? When I try to
> > run the bookkeeper tests with a zookeeper running I get lots of
> > "java.net.BindException: Address already in use" exceptions.
> Nope, the tests start a zk ensemble for you. If there's one already in
> place, you'll have a problem you'll get this error, but it doesn't
> seem to be the case here.
>
> > I couldn't figure out how to provide a log4j.properties to the tests,
> but I
> > don't really know for sure that better logging output will reveal
> anything
> > useful or now. If someone points me in the right direction, I'll provide
> an
> > output containing debugging logs.
> To turn on logging, modify
> bookkeeper-server/src/test/resources/log4j.properties
>
> Could you run /sbin/sysctl -n net.ipv6.bindv6only and tell us the
> output.
>
> -Ivan
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
> I'm not running a zookeeper ensemble. I shouldn't be right? When I try to
> run the bookkeeper tests with a zookeeper running I get lots of
> "java.net.BindException: Address already in use" exceptions.
Nope, the tests start a zk ensemble for you. If there's one already in
place, you'll have a problem you'll get this error, but it doesn't
seem to be the case here.
> I couldn't figure out how to provide a log4j.properties to the tests, but I
> don't really know for sure that better logging output will reveal anything
> useful or now. If someone points me in the right direction, I'll provide an
> output containing debugging logs.
To turn on logging, modify
bookkeeper-server/src/test/resources/log4j.properties
Could you run /sbin/sysctl -n net.ipv6.bindv6only and tell us the
output.
-Ivan
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
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 <iv...@apache.org> 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 <iv...@apache.org> 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 <iv...@apache.org>
> 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
> > > > >
> > >
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
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 <iv...@apache.org> 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 <iv...@apache.org> 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
> > > >
> >
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
I installed it myself from a 6.0 netinstall disk. I've had it around for a
while and upgraded it to 6.1 and then to 6.2.
-Gabriel
On Tue, Jun 12, 2012 at 12:42 PM, Ivan Kelly <iv...@apache.org> wrote:
> Bookies are binding on ::1/128, which the client doesn't like.
> http://comments.gmane.org/gmane.comp.java.hadoop.hbase.user/26518
> mentions a similar issue.
>
> We'll have to look into how to fix this without requiring full ipv6
> disablement. Did you install you're on centos VM, or download an image
> from somewhere?
>
> -Ivan
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
Bookies are binding on ::1/128, which the client doesn't like.
http://comments.gmane.org/gmane.comp.java.hadoop.hbase.user/26518
mentions a similar issue.
We'll have to look into how to fix this without requiring full ipv6
disablement. Did you install you're on centos VM, or download an image
from somewhere?
-Ivan
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
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 <iv...@apache.org> 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 <iv...@apache.org> 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
> > >
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
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 <iv...@apache.org> 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
> >
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
Yes. And while my interfaces have both ipv6 and ipv4 addresses, the ipv6
addresses are not actually usable ( with the exception of ::1/128 on the
loopback )
- Gabreil
On Tue, Jun 12, 2012 at 12:26 PM, Ivan Kelly <iv...@apache.org> 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
>
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
My current set of interfaces:
em1 Link encap:Ethernet HWaddr 84:2B:2B:FA:E0:31
inet addr:192.168.6.154 Bcast:192.168.6.255 Mask:255.255.255.0
inet6 addr: fe80::862b:2bff:fefa:e031/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1624328 errors:0 dropped:0 overruns:0 frame:0
TX packets:340690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:714724681 (681.6 MiB) TX bytes:45910373 (43.7 MiB)
Interrupt:36 Memory:d6000000-d6012800
em2 Link encap:Ethernet HWaddr 84:2B:2B:FA:E0:33
inet addr:10.11.34.89 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::862b:2bff:fefa:e033/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5010349 errors:0 dropped:0 overruns:0 frame:0
TX packets:107216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:794599927 (757.7 MiB) TX bytes:39703207 (37.8 MiB)
Interrupt:48 Memory:d8000000-d8012800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5531414 errors:0 dropped:0 overruns:0 frame:0
TX packets:5531414 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1076933522 (1.0 GiB) TX bytes:1076933522 (1.0 GiB)
On Tue, Jun 12, 2012 at 12:26 PM, Ivan Kelly <iv...@apache.org> 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
>
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
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 <iv...@apache.org> 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
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
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
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Sijie Guo <gu...@gmail.com>.
Ivan,
I remembered that a jira has fixed ipv6 issue before.
https://issues.apache.org/jira/browse/BOOKKEEPER-66
is it the same one?
Thanks,
Sijie
On Wed, Jun 13, 2012 at 12:12 AM, Ivan Kelly <iv...@apache.org> wrote:
> Hmm, this seems to be trying to get a ipv6 address. You could try
> disabling ipv6.
>
> Could you open a bug on JIRA for this so we can fix it also.
>
> https://issues.apache.org/jira/browse/BOOKKEEPER
>
> -Ivan
>
>
> On Tue, Jun 12, 2012 at 12:01:29PM -0400, gabriel russell wrote:
> > Yes, here:
> >
> > http://wiccatech.com/mvn-test-with-debugging.txt
> >
> >
> > - Gabriel
> >
> > On Tue, Jun 12, 2012 at 11:34 AM, Ivan Kelly <iv...@apache.org> wrote:
> >
> > > Hmm, this is really strange. Have you managed to run with log4j
> > > enabled?
> > >
> > >
> > > -Ivan
> > >
> > > On Tue, Jun 12, 2012 at 11:22:05AM -0400, gabriel russell wrote:
> > > > Yes, two.
> > > >
> > > > On Tue, Jun 12, 2012 at 11:13 AM, Ivan Kelly <iv...@apache.org>
> wrote:
> > > >
> > > > > Is there any non-loopback interface at all on the vm?
> > > > >
> > > > > -Ivan
> > > > >
> > > > > On Tue, Jun 12, 2012 at 10:09:57AM -0400, gabriel russell wrote:
> > > > > > Basically nothing. I'm currently just working on a single machine
> > > trying
> > > > > to
> > > > > > get tests running. After I can get the tests running I'll start
> > > setting
> > > > > up
> > > > > > a cluster on a group of physical machines that are actually
> networked
> > > > > > together.
> > > > > >
> > > > > > On Tue, Jun 12, 2012 at 9:29 AM, Ivan Kelly <iv...@apache.org>
> > > wrote:
> > > > > >
> > > > > > > > This I'm running this on my development virtualbox
> > > virtualmachine.
> > > > > > > How is the network set up for this?
> > > > > > >
> > > > > > > -Ivan
> > > > > > >
> > > > >
> > >
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
Hmm, this seems to be trying to get a ipv6 address. You could try
disabling ipv6.
Could you open a bug on JIRA for this so we can fix it also.
https://issues.apache.org/jira/browse/BOOKKEEPER
-Ivan
On Tue, Jun 12, 2012 at 12:01:29PM -0400, gabriel russell wrote:
> Yes, here:
>
> http://wiccatech.com/mvn-test-with-debugging.txt
>
>
> - Gabriel
>
> On Tue, Jun 12, 2012 at 11:34 AM, Ivan Kelly <iv...@apache.org> wrote:
>
> > Hmm, this is really strange. Have you managed to run with log4j
> > enabled?
> >
> >
> > -Ivan
> >
> > On Tue, Jun 12, 2012 at 11:22:05AM -0400, gabriel russell wrote:
> > > Yes, two.
> > >
> > > On Tue, Jun 12, 2012 at 11:13 AM, Ivan Kelly <iv...@apache.org> wrote:
> > >
> > > > Is there any non-loopback interface at all on the vm?
> > > >
> > > > -Ivan
> > > >
> > > > On Tue, Jun 12, 2012 at 10:09:57AM -0400, gabriel russell wrote:
> > > > > Basically nothing. I'm currently just working on a single machine
> > trying
> > > > to
> > > > > get tests running. After I can get the tests running I'll start
> > setting
> > > > up
> > > > > a cluster on a group of physical machines that are actually networked
> > > > > together.
> > > > >
> > > > > On Tue, Jun 12, 2012 at 9:29 AM, Ivan Kelly <iv...@apache.org>
> > wrote:
> > > > >
> > > > > > > This I'm running this on my development virtualbox
> > virtualmachine.
> > > > > > How is the network set up for this?
> > > > > >
> > > > > > -Ivan
> > > > > >
> > > >
> >
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
Yes, here:
http://wiccatech.com/mvn-test-with-debugging.txt
- Gabriel
On Tue, Jun 12, 2012 at 11:34 AM, Ivan Kelly <iv...@apache.org> wrote:
> Hmm, this is really strange. Have you managed to run with log4j
> enabled?
>
>
> -Ivan
>
> On Tue, Jun 12, 2012 at 11:22:05AM -0400, gabriel russell wrote:
> > Yes, two.
> >
> > On Tue, Jun 12, 2012 at 11:13 AM, Ivan Kelly <iv...@apache.org> wrote:
> >
> > > Is there any non-loopback interface at all on the vm?
> > >
> > > -Ivan
> > >
> > > On Tue, Jun 12, 2012 at 10:09:57AM -0400, gabriel russell wrote:
> > > > Basically nothing. I'm currently just working on a single machine
> trying
> > > to
> > > > get tests running. After I can get the tests running I'll start
> setting
> > > up
> > > > a cluster on a group of physical machines that are actually networked
> > > > together.
> > > >
> > > > On Tue, Jun 12, 2012 at 9:29 AM, Ivan Kelly <iv...@apache.org>
> wrote:
> > > >
> > > > > > This I'm running this on my development virtualbox
> virtualmachine.
> > > > > How is the network set up for this?
> > > > >
> > > > > -Ivan
> > > > >
> > >
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
Hmm, this is really strange. Have you managed to run with log4j
enabled?
-Ivan
On Tue, Jun 12, 2012 at 11:22:05AM -0400, gabriel russell wrote:
> Yes, two.
>
> On Tue, Jun 12, 2012 at 11:13 AM, Ivan Kelly <iv...@apache.org> wrote:
>
> > Is there any non-loopback interface at all on the vm?
> >
> > -Ivan
> >
> > On Tue, Jun 12, 2012 at 10:09:57AM -0400, gabriel russell wrote:
> > > Basically nothing. I'm currently just working on a single machine trying
> > to
> > > get tests running. After I can get the tests running I'll start setting
> > up
> > > a cluster on a group of physical machines that are actually networked
> > > together.
> > >
> > > On Tue, Jun 12, 2012 at 9:29 AM, Ivan Kelly <iv...@apache.org> wrote:
> > >
> > > > > This I'm running this on my development virtualbox virtualmachine.
> > > > How is the network set up for this?
> > > >
> > > > -Ivan
> > > >
> >
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
Yes, two.
On Tue, Jun 12, 2012 at 11:13 AM, Ivan Kelly <iv...@apache.org> wrote:
> Is there any non-loopback interface at all on the vm?
>
> -Ivan
>
> On Tue, Jun 12, 2012 at 10:09:57AM -0400, gabriel russell wrote:
> > Basically nothing. I'm currently just working on a single machine trying
> to
> > get tests running. After I can get the tests running I'll start setting
> up
> > a cluster on a group of physical machines that are actually networked
> > together.
> >
> > On Tue, Jun 12, 2012 at 9:29 AM, Ivan Kelly <iv...@apache.org> wrote:
> >
> > > > This I'm running this on my development virtualbox virtualmachine.
> > > How is the network set up for this?
> > >
> > > -Ivan
> > >
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
Is there any non-loopback interface at all on the vm?
-Ivan
On Tue, Jun 12, 2012 at 10:09:57AM -0400, gabriel russell wrote:
> Basically nothing. I'm currently just working on a single machine trying to
> get tests running. After I can get the tests running I'll start setting up
> a cluster on a group of physical machines that are actually networked
> together.
>
> On Tue, Jun 12, 2012 at 9:29 AM, Ivan Kelly <iv...@apache.org> wrote:
>
> > > This I'm running this on my development virtualbox virtualmachine.
> > How is the network set up for this?
> >
> > -Ivan
> >
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
Basically nothing. I'm currently just working on a single machine trying to
get tests running. After I can get the tests running I'll start setting up
a cluster on a group of physical machines that are actually networked
together.
On Tue, Jun 12, 2012 at 9:29 AM, Ivan Kelly <iv...@apache.org> wrote:
> > This I'm running this on my development virtualbox virtualmachine.
> How is the network set up for this?
>
> -Ivan
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
> This I'm running this on my development virtualbox virtualmachine.
How is the network set up for this?
-Ivan
Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by gabriel russell <ga...@wiccatech.com>.
Ladies and Gentlemen,
I'm not running a zookeeper ensemble. I shouldn't be right? When I try to
run the bookkeeper tests with a zookeeper running I get lots of
"java.net.BindException: Address already in use" exceptions.
This I'm running this on my development virtualbox virtualmachine.
The problem seams very similar to this problem:
https://issues.apache.org/jira/browse/BOOKKEEPER-156 . I've tried both the
4.0.0 release as well as the current git head. Both of which exhibit the
same symptoms. And I can confirm that the git branch that I'm using
contains the bug fix for the mentioned bug
I couldn't figure out how to provide a log4j.properties to the tests, but I
don't really know for sure that better logging output will reveal anything
useful or now. If someone points me in the right direction, I'll provide an
output containing debugging logs.
Here, I've gathered the stats that I thought could be useful.
[grussell@centos bookkeeper]$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.6)
(rhel-1.43.1.10.6.el6_2-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
[grussell@centos bookkeeper]$ cat /etc/redhat-release
CentOS release 6.2 (Final)
[grussell@centos bookkeeper]$ uname -a
Linux centos 2.6.32-220.17.1.el6.x86_64 #1 SMP Wed May 16 00:01:37 BST 2012
x86_64 x86_64 x86_64 GNU/Linux
[grussell@centos bookkeeper]$ telnet localhost 2181
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[grussell@centos bookkeeper]$ ss -l -n
Recv-Q Send-Q Local Address:Port Peer Address:Port
0 20 *:587 *:*
0 20 :::587 :::*
0 128 :::111 :::*
0 128 *:111 *:*
0 20 *:465 *:*
0 20 :::465 :::*
0 128 :::22 :::*
0 128 *:22 *:*
0 128 127.0.0.1:631 *:*
0 128 ::1:631 :::*
0 20 *:25 *:*
0 20 :::25 :::*
[grussell@centos bookkeeper]$ top
top - 08:36:46 up 55 min, 3 users, load average: 0.00, 0.00, 0.00
Tasks: 197 total, 1 running, 196 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.6%us, 0.9%sy, 0.0%ni, 98.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%
Mem: 3922920k total, 651612k used, 3271308k free, 70612k buffers
Swap: 2064376k total, 0k used, 2064376k free, 220140k cached
Thank you,
Gabriel Russell
On Tue, Jun 12, 2012 at 3:21 AM, Ivan Kelly <iv...@apache.org> wrote:
> Do you have a zookeeper ensemble already running, or is there anything
> else listening on 2181 on that machine?
>
> What environment are you using? OS etc.
>
> -Ivan
>
> On Tue, Jun 12, 2012 at 01:23:10AM -0400, gabriel russell wrote:
> > I've posted here:
> >
> > http://wiccatech.com/mvn-test-output.txt
> >
> > the output of me running
> >
> > mvn test -Dsurefire.useFile=false
> >
> >
> > It's very long so I'm not including it in the email, but here is a
> snippet:
> >
> >
> > Running org.apache.bookkeeper.client.TestReadTimeout
> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.709 sec
> > <<< FAILURE!
> > testReadTimeout(org.apache.bookkeeper.client.TestReadTimeout) Time
> elapsed:
> > 1.5 sec <<< ERROR!
> > org.apache.bookkeeper.client.BKException$ZKException
> >
> > at org.apache.bookkeeper.client.BKException.create(BKException.java:64)
> >
> > at
> org.apache.bookkeeper.client.BookKeeper.createLedger(BookKeeper.java:324)
> >
> > at
> >
> org.apache.bookkeeper.client.TestReadTimeout.testReadTimeout(TestReadTimeout.java:64)
> >
> >
> > I'm very new to bookkeeper and am just trying to get it running. I'd
> > appreciate any hint on figuring out what's wrong.
> >
> > Thanks
>
Re: when I run mvn test most of the tests fail in
org.apache.bookkeeper.client.BookKeeper.createLedger
Posted by Ivan Kelly <iv...@apache.org>.
Do you have a zookeeper ensemble already running, or is there anything
else listening on 2181 on that machine?
What environment are you using? OS etc.
-Ivan
On Tue, Jun 12, 2012 at 01:23:10AM -0400, gabriel russell wrote:
> I've posted here:
>
> http://wiccatech.com/mvn-test-output.txt
>
> the output of me running
>
> mvn test -Dsurefire.useFile=false
>
>
> It's very long so I'm not including it in the email, but here is a snippet:
>
>
> Running org.apache.bookkeeper.client.TestReadTimeout
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.709 sec
> <<< FAILURE!
> testReadTimeout(org.apache.bookkeeper.client.TestReadTimeout) Time elapsed:
> 1.5 sec <<< ERROR!
> org.apache.bookkeeper.client.BKException$ZKException
>
> at org.apache.bookkeeper.client.BKException.create(BKException.java:64)
>
> at org.apache.bookkeeper.client.BookKeeper.createLedger(BookKeeper.java:324)
>
> at
> org.apache.bookkeeper.client.TestReadTimeout.testReadTimeout(TestReadTimeout.java:64)
>
>
> I'm very new to bookkeeper and am just trying to get it running. I'd
> appreciate any hint on figuring out what's wrong.
>
> Thanks