bookkeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gabriel russell <gabr...@wiccatech.com>
Subject Re: when I run mvn test most of the tests fail in org.apache.bookkeeper.client.BookKeeper.createLedger
Date Tue, 12 Jun 2012 13:14:05 GMT
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 <ivank@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
>

Mime
View raw message