curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <jor...@jordanzimmerman.com>
Subject Re: Leader Latch recovery after suspended state
Date Tue, 20 Aug 2013 17:34:04 GMT
On reset() it could check to see if its node still exists. It would make the code a lot more
complicated though.

-JZ

On Aug 20, 2013, at 10:25 AM, Calvin Jia <jia.calvin@gmail.com> wrote:

> A leader latch enters the suspended state after failing to receive a response from the
first ZK machine it heartbeats to (takes 2 thirds of the timeout). For the last 1 third, it
tries to contact another ZK machine. If it is successful, it will enter the state reconnected.
> 
> However, on reconnect, despite the fact the original node it created in ZK is still there,
it will create another ephemeral-sequential node (the reset method is called). This means
it will relinquish leadership, if there is another machine with a latch in the same path.
> 
> Is there any way to reconnect and reuse the original ZK node?
> 
> Thanks!


Mime
View raw message