try {
renewZookeeperInstance(sessionTimeout, quorumServers);
} catch (Exception e) {
console.printError("Lock for " + name
+ " cannot be acquired in " + mode);
throw new LockException(ErrorMsg.LOCK_CANNOT_BE_ACQUIRED.getMsg());
}
if (tryNum == numRetries) {
console.printError("Lock for " + name
+ " cannot be acquired in " + mode);
throw new LockException(ErrorMsg.LOCK_CANNOT_BE_ACQUIRED.getMsg());
}
tryNum++;
console.printInfo("Lock for " + name