private void processWatchedEvent(WatchedEvent event) {
    if (event.getType() != EventType.NodeDeleted) return;
    String localPath = nodePath.get();
    if (localPath == null) return;
    if (!localPath.equals(event.getPath())) {
      LOG.info("Ignoring the NodeDeleted event for " + event.getPath());
      return;
    }
    LOG.info("Trying to reacquire because of the NodeDeleted event");
    startCreateCurrentNode();
  }
We would have used the curator ephemeral node with some extra logic but it doesn't handle
the EXISTS condition, which is crucial here; so we c/p parts of Curator and add our logic.
llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/SlotZnode.java