@Override public void close() throws LockException { for (HiveLock lock : locks) { unlock(lock); } locks.clear(); }
@Override public void close() throws LockException { for (HiveLock lock : locks) { unlock(lock); } locks.clear(); }
@Override public void releaseLocks(List<HiveLock> hiveLocks) { LOG.info("releaseLocks: " + hiveLocks); for (HiveLock lock : hiveLocks) { try { unlock(lock); } catch (LockException e) { // Not sure why this method doesn't throw any exceptions, // but since the interface doesn't allow it we'll just swallow them and // move on. //This OK-ish since releaseLocks() is only called for RO/AC queries; it //would be really bad to eat exceptions here for write operations } } }
@Override public void releaseLocks(List<HiveLock> hiveLocks) { LOG.info("releaseLocks: " + hiveLocks); for (HiveLock lock : hiveLocks) { try { unlock(lock); } catch (LockException e) { // Not sure why this method doesn't throw any exceptions, // but since the interface doesn't allow it we'll just swallow them and // move on. //This OK-ish since releaseLocks() is only called for RO/AC queries; it //would be really bad to eat exceptions here for write operations } } }
unlock(hl);//remove the locks in Waiting state LockException le = new LockException(null, ErrorMsg.LOCK_ACQUIRE_TIMEDOUT, lock.toString(), Long.toString(retryDuration), res.toString());
unlock(hl);//remove the locks in Waiting state LockException le = new LockException(null, ErrorMsg.LOCK_ACQUIRE_TIMEDOUT, lock.toString(), Long.toString(retryDuration), res.toString());
@Override public void releaseLocks(List<HiveLock> hiveLocks) { for (HiveLock lock : hiveLocks) { try { unlock(lock); } catch (LockException e) { // Not sure why this method doesn't throw any exceptions, // but since the interface doesn't allow it we'll just swallow them and // move on. } } }
@Override public void close() throws LockException { for (HiveLock lock : locks) { unlock(lock); } locks.clear(); }