public boolean hasLeader() {
    return leaderExists.get();
  }
Removes the leader znode, if it is currently claimed by this instance.
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKLeaderManager.java