public interface TxnLockManager
| Modifier and Type | Method and Description |
|---|---|
LockResponse |
checkLock(long extLockId,
long txnId,
boolean zeroWaitReadEnabled,
boolean isExclusiveCTAS)
Check whether a lock has been obtained.
|
long |
enqueueLock(LockRequest rqst) |
ShowLocksResponse |
showLocks(ShowLocksRequest rqst)
Get information on current locks.
|
void |
unlock(UnlockRequest rqst)
Unlock a lock.
|
@Transactional(value="txnhandler") long enqueueLock(LockRequest rqst) throws NoSuchTxnException, TxnAbortedException, MetaException
@Transactional(value="txnhandler",
noRollbackFor=org.apache.hadoop.hive.metastore.api.TxnAbortedException.class)
LockResponse checkLock(long extLockId,
long txnId,
boolean zeroWaitReadEnabled,
boolean isExclusiveCTAS)
throws NoSuchTxnException,
NoSuchLockException,
TxnAbortedException,
MetaException
enqueueLock(LockRequest) returned a wait
state.extLockId - txnId - Transaction idzeroWaitReadEnabled - isExclusiveCTAS - NoSuchTxnExceptionNoSuchLockExceptionTxnAbortedExceptionMetaException@Transactional(value="txnhandler") void unlock(UnlockRequest rqst) throws TxnOpenException, MetaException
rqst - lock to unlockTxnOpenExceptionMetaException@Transactional(value="txnhandler") ShowLocksResponse showLocks(ShowLocksRequest rqst) throws MetaException
rqst - lock information to retrieveMetaExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.