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

The following examples show how to use org.apache.hadoop.hive.metastore.api.UnlockRequest. These examples are extracted from open source projects. 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 Project: iceberg   Source File: HiveTableOperations.java    License: 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 Project: waggle-dance   Source File: FederatedHMSHandler.java    License: 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 Project: waggle-dance   Source File: FederatedHMSHandlerTest.java    License: 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 Project: metacat   Source File: CatalogThriftHiveMetastore.java    License: 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});
}