(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>
3 files changed