commit | c4463ee8551b5f0ee0d41bd35d2236a958f4a925 | [log] [tgz] |
---|---|---|
author | Terence Yim <chtyim@apache.org> | Thu May 21 23:03:36 2015 -0700 |
committer | Terence Yim <chtyim@apache.org> | Fri May 22 14:48:08 2015 -0700 |
tree | 94ead36270e4442dccbaa40c457b6b28146fbe5c | |
parent | beb888297f4362ed0522ed487713f7ebab6abb55 [diff] |
(TWILL-129) Fix race condition in leader election - If the node to watch is gone, re-run the leader election - Use getData() instead of exists() to set the watch - Avoid “leaking” watches on node that is gone Signed-off-by: Terence Yim <chtyim@apache.org>