Can you post sample code to explain what you are doing? Its harder to see
from what you explained as to why zookeeper should fail.
As for session timeout, it means that your session will be expired after 5000ms
if your zookeeper client goes away.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Avinash Lakshman
Sent: Friday, June 06, 2008 8:58 AM
To: Flavio Junqueira
Subject: Re: [Zookeeper-user] create() failure
These are sequence of interactions with ZooKeeper:
(1) Instantiate Zookeeper and perform the checks for a bunch of znodes. All
this works as expected.
(2) Spawn a thread which tries to perform leader election. This is where I am
trying to create the znode with the sequence numbers.
I am assuming that the client connected successfully because the checks in step
1 went through fine. Also I have Zookeeper run in a cluster of 5 nodes which
are all in the same rack and in the same data center. Another question I have
is if I set the seesion timeout parameter to 5000 ms in the ZooKeeper ctor does
that mean my session is invalidated after 5000 ms or is kept alive after every
5000 ms. What is the significance of the session timeout parameter?
On Fri, Jun 6, 2008 at 1:55 AM, Flavio Junqueira <[EMAIL PROTECTED]> wrote:
It could be because your client has not connected properly to a ZooKeeper
server. Have you taken a look at the logs on the server side to make sure that
a session has been created? Could you give me a little more detail about your
----- Original Message ----
From: Avinash Lakshman <[EMAIL PROTECTED]>
Sent: Friday, June 6, 2008 10:49:16 AM
Subject: [Zookeeper-user] create() failure
When I do execute the folloiwing code :
String pathCreated = zk.create(createPath, new byte, Ids.OPEN_ACL_UNSAFE,
(CreateFlags.SEQUENCE | CreateFlags.EPHEMERAL) );
It seems to fail silently w/o reporting any errors. I mean I have a log
statement after this line which never shows up. However it works if I execute
it via the debugger. Any ideas as to what might be happening?
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Zookeeper-user mailing list