Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # dev >> 1 unit test failure of Zab1_0Test.java in zookeeper-3.4.3


Copy link to this message
-
Re: 1 unit test failure of Zab1_0Test.java in zookeeper-3.4.3
FYI this was solved by changing the hard-wired port to PortAssignment.unique()

On Wed, Aug 22, 2012 at 8:50 AM, Liping Zhang <[EMAIL PROTECTED]> wrote:
> Here is the netstat command result screen shot. Hope it can help you to
> investigate the root cause of the issue. Thanks a lot!
>
>
>
> On Wed, Aug 22, 2012 at 11:48 PM, Liping Zhang <[EMAIL PROTECTED]> wrote:
>
>> Dear zookeeper dev team,
>>
>> Thanks very much for your great dev work of zookeeper such a good project
>> for hadoop and hbase! I have met a zookeeper internal java unit test
>> failure when I download zookeeper-3.4.3 and run "ant test" to run all the
>> zookeeper unit test.
>>
>> The failed unit test is org.apache.zookeeper.server.quorum.Zab1_0Test,
>> and the JDK I used is Sun jdk1.6.0_21. I assume all the unit test should be
>> passed from your side before release, but it is failed from my side. Can
>> you help to have a look at why this Zab1_0Test unit test failed and how to
>> fix it? Highly appreciated for your help!
>>
>> I also search it in google, just found that someone also had the same
>> issue, but I didn't found an the resolution as far as I search. Is there
>> any JIRA  tracking for this issue? How can I fix it?
>>
>>
>> http://mail-archives.apache.org/mod_mbox/zookeeper-dev/201201.mbox/%[EMAIL PROTECTED]%3E
>>
>> http://mail-archives.apache.org/mod_mbox/zookeeper-dev/201201.mbox/%3C114225885.3301327139742583.JavaMail.hudson@aegis%3E
>>
>> Here is the failure information:
>> --------------------------------------------------------
>> This failure says 33556 port is already used, but it is not in use with
>> command netstat check in fact. Do you have any idea of this? Did you meet
>> this issue before when you did previous zookeeper version upgrade? thanks!
>>
>>     [junit] Running org.apache.zookeeper.server.quorum.Zab1_0Test
>>     [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 18.334 sec
>>     [junit] Test org.apache.zookeeper.server.quorum.Zab1_0Test FAILED
>>
>> Zab1_0Test log:
>> ----------------------------------------------------------------------
>> 2012-07-11 23:17:15,579 [myid:] - INFO  [main:Leader@427] - Shutdown
>> called
>> *java.lang.Exception: shutdown Leader! reason: end of test*
>>         at
>> org.apache.zookeeper.server.quorum.Leader.shutdown(Leader.java:427)
>>         at
>> org.apache.zookeeper.server.quorum.Zab1_0Test.testLastAcceptedEpoch(Zab1_0Test.java:211)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>
>>
>> *2012-07-11 23:17:15,584 [myid:] - ERROR [main:Leader@139] - Couldn't
>> bind to port 33556
>> java.net.BindException: Address already in use*
>>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:402)
>>         at java.net.ServerSocket.bind(ServerSocket.java:328)
>>         at java.net.ServerSocket.bind(ServerSocket.java:286)
>>         at
>> org.apache.zookeeper.server.quorum.Leader.<init>(Leader.java:137)
>>         at
>> org.apache.zookeeper.server.quorum.Zab1_0Test.createLeader(Zab1_0Test.java:810)
>>         at
>> org.apache.zookeeper.server.quorum.Zab1_0Test.testLeaderInElectingFollowers(Zab1_0Test.java:224)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> *2012-07-11 23:17:20,202 [myid:] - ERROR [
>> LearnerHandler-bdvm039.svl.ibm.com/9.30.122.48:40153:LearnerHandler@559]
>> - Unex
>> pected exception causing shutdown while sock still open
>> java.net.SocketTimeoutException: Read timed out*
>>         at java.net.SocketInputStream.read(SocketInputStream.java:129)
>>         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>>         at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
>>         at java.io.DataInputStream.readInt(DataInputStream.java:370)
>>         at
>> org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
>>         at