536537538539540541542543
removeAllRedundantNodes(); } } catch (Exception e) { LOG.error("Failed to close zooKeeper client: " + e); throw new LockException(e); } }
607608609610611612613614
} return new HiveLockObject(partn, data); } catch (Exception e) { LOG.error("Failed to create ZooKeeper object: " + e); throw new LockException(e); } }
640641642643644645646647
@Override public void prepareRetry() throws LockException { try { renewZookeeperInstance(sessionTimeout, quorumServers); } catch (Exception e) { throw new LockException(e); } }
119120121122123124125126
// ignore if the parent already exists } } catch (Exception e) { LOG.error("Failed to create ZooKeeper object: ", e); throw new LockException(ErrorMsg.ZOOKEEPER_CLIENT_COULD_NOT_BE_INITIALIZED.getMsg()); } }
318319320321322323324325326327328
LOG.error("Serious Zookeeper exception: ", e); break; } } if (tryNum >= numRetriesForLock) { throw new LockException(e1); } } } while (tryNum < numRetriesForLock); return ret;
417418419420421422423424425426427
} unlockPrimitive(conf, zkpClient, hiveLock, parent); break; } catch (Exception e) { if (tryNum >= numRetriesForUnLock) { throw new LockException(e); } } } while (tryNum < numRetriesForUnLock); return;
443444445446447448449450
{ zkpClient.delete(name, -1); } } catch (Exception e) { LOG.error("Failed to release ZooKeeper lock: ", e); throw new LockException(e); } }
627628629630631632633634
698699700701702703704705
731732733734735736737738