397398399400401402403404
{ zkpClient.delete(name, -1); } } catch (Exception e) { LOG.error("Failed to release ZooKeeper lock: " + e); throw new LockException(e); } }
562563564565566567568569
if (HiveConf.getBoolVar(ctx.getConf(), HiveConf.ConfVars.HIVE_ZOOKEEPER_CLEAN_EXTRA_NODES)) { removeAllRedundantNodes(); } } catch (Exception e) { LOG.error("Failed to close zooKeeper client: " + e); throw new LockException(e); } }
633634635636637638639640
} return new HiveLockObject(partn, data); } catch (Exception e) { LOG.error("Failed to create ZooKeeper object: " + e); throw new LockException(e); } }
124125126127128129130131
} } } catch (Exception e) { LOG.error("Failed to create ZooKeeper object: ", e); throw new LockException(ErrorMsg.ZOOKEEPER_CLIENT_COULD_NOT_BE_INITIALIZED.getMsg()); } }
329330331332333334335336337338339
LOG.error("Serious Zookeeper exception: ", e); break; } } if (tryNum >= numRetriesForLock) { throw new LockException(e1); } } } while (tryNum < numRetriesForLock); return ret;
428429430431432433434435436437438
} unlockPrimitive(conf, zkpClient, hiveLock, parent); break; } catch (Exception e) { if (tryNum >= numRetriesForUnLock) { throw new LockException(e); } } } while (tryNum < numRetriesForUnLock); return;
454455456457458459460461
{ zkpClient.delete(name, -1); } } catch (Exception e) { LOG.error("Failed to release ZooKeeper lock: ", e); throw new LockException(e); } }
640641642643644645646647
removeAllRedundantNodes(); } } catch (Exception e) { LOG.error("Failed to close zooKeeper client: " + e); throw new LockException(e); } }
711712713714715716717718
745746747748749750751752
@Override public void prepareRetry() throws LockException { try { renewZookeeperInstance(sessionTimeout, quorumServers); } catch (Exception e) { throw new LockException(e); } }