org.apache.hadoop.hive.metastore.api.UnlockRequest Java Examples

The following examples show how to use org.apache.hadoop.hive.metastore.api.UnlockRequest. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HiveTableOperations.java    From iceberg with Apache License 2.0 5 votes vote down vote up
private void unlock(Optional<Long> lockId) {
  if (lockId.isPresent()) {
    try {
      metaStoreClient.unlock(new UnlockRequest(lockId.get()));
    } catch (TException e) {
      throw new RuntimeException(format("Failed to unlock %s.%s", database, tableName) , e);
    }
  }
}
 
Example #2
Source File: FederatedHMSHandler.java    From waggle-dance with Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public void unlock(UnlockRequest rqst) throws NoSuchLockException, TxnOpenException, TException {
  getPrimaryClient().unlock(rqst);
}
 
Example #3
Source File: FederatedHMSHandlerTest.java    From waggle-dance with Apache License 2.0 4 votes vote down vote up
@Test
public void unlock() throws TException {
  UnlockRequest request = new UnlockRequest();
  handler.unlock(request);
  verify(primaryClient).unlock(request);
}
 
Example #4
Source File: CatalogThriftHiveMetastore.java    From metacat with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void unlock(final UnlockRequest rqst) throws TException {
    throw unimplemented("unlock", new Object[]{rqst});
}