oops, I meant to send this to the list!

---------- Forwarded message ----------
From: Satish Bhatti <[EMAIL PROTECTED]>
Date: Wed, Aug 6, 2008 at 5:50 PM
Subject: Re: [Zookeeper-user] FW: Client Connect Exceptions + Zookeeper Unit
Tests fail
To: Mahadev Konar <[EMAIL PROTECTED]>


Hi Mahadev,
I am running on Mac OSX Leopard.

scbmac:~/agent/mserver $ java -version
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build
1.6.0_03-p3-landonf_03_feb_2008_01_32-b00)
Java HotSpot(TM) 64-Bit Server VM (build
1.6.0_03-p3-landonf_03_feb_2008_01_32-b00, mixed mode)

This is the 64 bit soylatte JVM.

Some more datapoints:

(1) I did not have a server running for the unit tests, because from reading
the unit test code, it looks like the tests start up their own server on
port 2181.
(2) The unit tests all completed without error on my Ubuntu Linux box.

This kinda looks like some platform/JDK issue?

Satish



On Wed, Aug 6, 2008 at 4:26 PM, Mahadev Konar <[EMAIL PROTECTED]> wrote:

>  Forwarding it to all
>
> ------ Forwarded Message
> *From: *Mahadev Konar <[EMAIL PROTECTED]>
> *Date: *Wed, 06 Aug 2008 11:54:49 -0700
> *To: *Satish Bhatti <[EMAIL PROTECTED]>
> *Conversation: *[Zookeeper-user] Client Connect Exceptions + Zookeeper
> Unit Tests fail
> *Subject: *Re: [Zookeeper-user] Client Connect Exceptions + Zookeeper Unit
> Tests fail
>
> Hi Satish,
>  What os are you running it on?
>  Also, did you have the server running while you were running the tests? We
> use hard coded ports in the tests — 2181 is one of them. So the tests would
> fail since it would not be able to bind to the server .
>
> Mahadev
>
>
> On 8/6/08 11:49 AM, "Satish Bhatti" <[EMAIL PROTECTED]> wrote:
>
> I am using the 2.2.1 version of ZooKeeper.   My zoo.cfg file is:
>
> # The number of milliseconds of each tick
> tickTime=2000
>
> # the directory where the snapshot is stored.
> dataDir=/Users/satish/zookeeper/server1/data/
>
> # the port at which the clients will connect
> clientPort=2181
>
> The command line I am using for the server is:
>
> java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar:conf
> com.yahoo.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg
>
> and for the client:
>
> java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar:conf
> com.yahoo.zookeeper.ZooKeeper 127.0.0.1:2181 <http://127.0.0.1:2181>
>
> Here is what I get on the client end:
>
> WARN  - [SendThread:[EMAIL PROTECTED] - Trying to connect to /
> 127.0.0.1:2181 <http://127.0.0.1:2181>
> WARN  - [SendThread:[EMAIL PROTECTED] - Priming connection to
> java.nio.channels.SocketChannel[connected local=/127.0.0.1:63815 <
> http://127.0.0.1:63815>  remote=/127.0.0.1:2181 <http://127.0.0.1:2181> ]
> null: 3--1
>
>
> WARN  - [SendThread:[EMAIL PROTECTED] - Closing:
> java.io.IOException: TIMED OUT
>       at com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666)
> null: 0--1
> WARN  - [SendThread:[EMAIL PROTECTED] - Trying to connect to /
> 127.0.0.1:2181 <http://127.0.0.1:2181>
> WARN  - [SendThread:[EMAIL PROTECTED] - Priming connection to
> java.nio.channels.SocketChannel[connected local=/127.0.0.1:63816 <
> http://127.0.0.1:63816>  remote=/127.0.0.1:2181 <http://127.0.0.1:2181> ]
>
> null: 3--1
>
> create /test hello
>
> Processing create
> WARN  - [SendThread:[EMAIL PROTECTED] - Closing:
> java.io.IOException: TIMED OUT
>       at com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666)
> Exception in thread "main" com.yahoo.zookeeper.KeeperException:
> KeeperErrorCode = ConnectionLoss for /test
>       at com.yahoo.zookeeper.ZooKeeper.create(ZooKeeper.java:244)
>       at com.yahoo.zookeeper.ZooKeeper.processCmd(ZooKeeper.java:788)
>       at com.yahoo.zookeeper.ZooKeeper.main(ZooKeeper.java:745)
>
> At this point the client exits.
>
> Note the continuous stream of "null: 3--1" type errors.  Why is it
> constantly having to reconnect to the server?  Finally, when I type in a
> simple create command the client goes belly up and exits.  Even though I am
> following the exact instructions in the SourceForge wiki, I figured maybe I
> was doing something wrong, so I decided to run the unit tests.  Sure enough,
> they also failed!
>
>
> junit.run:
> Warning: Reference test.classpath has not been set at runtime, but was
> found during
> build file parsing, attempting to resolve. Future versions of Ant may
> support
> referencing ids defined in non-executed targets.
>   [junit] Running com.yahoo.zookeeper.server.DeserializationPerfTest
>   [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 9.549 sec
>   [junit] Running com.yahoo.zookeeper.server.SerializationPerfTest
>   [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 6.78 sec
>   [junit] Running com.yahoo.zookeeper.server.ZooKeeperServerTest
>   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.139 sec
>   [junit] Running com.yahoo.zookeeper.test.AsyncTest
>   [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 103.648 sec
>   [junit] Test com.yahoo.zookeeper.test.AsyncTest FAILED
>   [junit] Running com.yahoo.zookeeper.test.ClientTest
>   [junit] Tests run: 4, Failures: 4, Errors: 0, Time elapsed: 140.248 sec
>   [junit] Test com.yahoo.zookeeper.test.ClientTest FAILED
>   [junit] Running com.yahoo.zookeeper.test.DataTreeTest
>   [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.087 sec
>   [junit] Running com.yahoo.zookeeper.test.OOMTest
>   [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.014 sec
>   [junit] Running com.yahoo.zookeeper.test.QuorumTest
>   [junit] Tests run: 4, Failures: 3, Errors: 1, Time elapsed: 169.124 sec
>   [junit] Test com.yahoo.zookeeper.test.QuorumTest FAILED
>   [junit] Running com.yahoo.zookeeper.test.RecoveryTest
>   [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 14.635 sec
>   [junit] Test com.yahoo.zookeeper.test.RecoveryTest FAILED
>   [junit] Running com.yahoo.zookeeper.test.SessionTest
>   [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 32.542 sec
>   [junit] Test com.yahoo.zookeeper.test.SessionTest FAILED
>
> BUILD FAILED
> /Users/satish/zookeeper/build.xml:336: The following error occurred while
> executing this line:
> /Users/satish/zookeeper/build.xml:314: Tests failed!
>
> Total time: 9 minutes 4 seconds
>
> Any ideas what's going on?
>
> Satish
>
> ------------------------------
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------
> _______________________________________________
> Zookeeper-user mailing list
> Zookeeper-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/zookeeper-user
>
>
> ------ End of Forwarded Message
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Zookeeper-user mailing list
> Zookeeper-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/zookeeper-user
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Zookeeper-user mailing list
Zookeeper-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zookeeper-user

Reply via email to