Problem solved and it was an issue in my code.
Sorry about this. Only when i wrote the issue i was able to understand the
On Fri, Oct 8, 2010 at 3:30 PM, Posse <ruipo...@gmail.com> wrote:
> Hi all,
> I'm new to ZooKeeper and i have to implement Leader Election using it.
> I've read lots of information about, and i'm following the pseudo-code
> available at
> I'll describe my problem:
> When i create a znode in client one using the following code, everything
> works fine and a "/election/n_0000000000" znode is created. I can tell that,
> because of the output of "path".
> String path = "/election/n_";
>> path = zk.create(path, new byte, Ids.OPEN_ACL_UNSAFE,
> But, when i use the same code in client two, the output is simply
> I think it should be something like "/election/n_0000000001", so then i can
> compare znodes to tell who's the leader.
> Is there something wrong about what i'm doing?
> Thank you.