return tserverCount;
}
private void getMasterLock(final String zMasterLoc) throws KeeperException, InterruptedException {
log.info("trying to get master lock");
LockWatcher masterLockWatcher = new ZooLock.LockWatcher() {
public void lostLock(LockLossReason reason) {
Halt.halt("Master lock in zookeeper lost (reason = " + reason + "), exiting!", -1);
}
};
long current = System.currentTimeMillis();