zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Kelly <iv...@apache.org>
Subject Re: locking/leader election and dealing with session loss
Date Wed, 15 Jul 2015 19:23:00 GMT
I blogged about this exact problem a couple of weeks ago [1]. I give an
example of how split brain can happen in a resource under a zk lock (Hbase
in this case). As Camille says, sequence numbers ftw. I'll add that the
data store has to support them though, which not all do (in fact I've yet
to see one in the wild that does). I've implemented a prototype that works
with hbase[2] if you want to see what it looks like.


[2] https://github.com/ivankelly/hbase-exclusive-writer

On Wed, Jul 15, 2015 at 9:16 PM Vikas Mehta <vikasmehta@gmail.com> wrote:

> Jordan, I mean the client gives up the lock and stops working on the shared
> resource. So when zookeeper is unavailable, no one is working on any shared
> resource (because they cannot distinguish network partition from zookeeper
> DEAD scenario).
> --
> View this message in context:
> http://zookeeper-user.578899.n2.nabble.com/locking-leader-election-and-dealing-with-session-loss-tp7581277p7581293.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message