You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by Bhallamudi Venkata Siva Kamesh <bh...@huawei.com> on 2011/03/16 14:28:24 UTC

Zookeeper cluster not working

Hi All,

 I am using zookeeper for my one of the projects. I encountered zookeeper
cluster not working in the following scenario,

 Our zookeeper cluster has size 3 say z1,z2, and z3

 

1) Start the zookeeper cluster.

2) Make client connections to the zookeeper cluster.

3) Shutdown z3.

4) After some time, make the network down of the system, where z2 is
running.

5) After some time, start again z3.

 

Now there are 2 zookeepers up in the cluster and they should run. But both
are hanging in leader election state indefinitely.

 

But when I make z2 up again, all three are running as expected. Leader
election algorithm is "Fast Leader Election Algorithm".

 

My question here, is it a bug to raise in the open source?

Please provide your suggestions.

 

Thanks in advance.

 

Thanks&Regards,

Bh.V.S.Kamesh.

 

 


Re: Zookeeper cluster not working

Posted by Vishal Kher <vi...@gmail.com>.
Hi,

It is difficult to comment on this without more details (ZK version, logs,
etc). I would take a look at existing JIRAs and then open one if the problem
is not reported/fixed.

-Vishal

On Wed, Mar 16, 2011 at 9:28 AM, Bhallamudi Venkata Siva Kamesh <
bhallamudi.kamesh@huawei.com> wrote:

> Hi All,
>
>  I am using zookeeper for my one of the projects. I encountered zookeeper
> cluster not working in the following scenario,
>
>  Our zookeeper cluster has size 3 say z1,z2, and z3
>
>
>
> 1) Start the zookeeper cluster.
>
> 2) Make client connections to the zookeeper cluster.
>
> 3) Shutdown z3.
>
> 4) After some time, make the network down of the system, where z2 is
> running.
>
> 5) After some time, start again z3.
>
>
>
> Now there are 2 zookeepers up in the cluster and they should run. But both
> are hanging in leader election state indefinitely.
>
>
>
> But when I make z2 up again, all three are running as expected. Leader
> election algorithm is "Fast Leader Election Algorithm".
>
>
>
> My question here, is it a bug to raise in the open source?
>
> Please provide your suggestions.
>
>
>
> Thanks in advance.
>
>
>
> Thanks&Regards,
>
> Bh.V.S.Kamesh.
>
>
>
>
>
>