126127128129130131132133
} } } catch (Exception e) { LOG.error("Failed to create ZooKeeper object: ", e); throw new LockException(ErrorMsg.ZOOKEEPER_CLIENT_COULD_NOT_BE_INITIALIZED.getMsg()); } }
331332333334335336337338339340341
LOG.error("Serious Zookeeper exception: ", e); break; } } if (tryNum >= numRetriesForLock) { throw new LockException(e1); } } } while (tryNum < numRetriesForLock); return ret;
430431432433434435436437438439440
} unlockPrimitive(conf, zkpClient, hiveLock, parent); break; } catch (Exception e) { if (tryNum >= numRetriesForUnLock) { throw new LockException(e); } } } while (tryNum < numRetriesForUnLock); return;
461462463464465466467468
} catch (KeeperException.NoNodeException e) { LOG.debug("Node " + name + " previously deleted when attempting to delete."); } } catch (Exception e) { LOG.error("Failed to release ZooKeeper lock: ", e); throw new LockException(e); } }
647648649650651652653654
removeAllRedundantNodes(); } } catch (Exception e) { LOG.error("Failed to close zooKeeper client: " + e); throw new LockException(e); } }
718719720721722723724725
} return new HiveLockObject(partn, data); } catch (Exception e) { LOG.error("Failed to create ZooKeeper object: " + e); throw new LockException(e); } }
752753754755756757758759
@Override public void prepareRetry() throws LockException { try { renewZookeeperInstance(sessionTimeout, quorumServers); } catch (Exception e) { throw new LockException(e); } }
102103104105106107108109
} } catch (Exception e) { LOG.error("Failed to create ZooKeeper object: " + e); throw new LockException(ErrorMsg.ZOOKEEPER_CLIENT_COULD_NOT_BE_INITIALIZED.getMsg()); } }
333334335336337338339340341342
return null; } } } catch (Exception e) { LOG.error("Failed to get ZooKeeper lock: " + e); throw new LockException(e); } return new ZooKeeperHiveLock(res, key, mode); }
362363364365366367368369
{ zkpClient.delete(name, -1); } } catch (Exception e) { LOG.error("Failed to release ZooKeeper lock: " + e); throw new LockException(e); } }