public synchronized States getState() {
    return zk == null ? null : zk.getState();
  }
Run multiple operations in a transactional manner. Retry before throwing exception
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java