public class AbortTxnsFunction extends Object implements TransactionalFunction<Integer>
| Constructor and Description |
|---|
AbortTxnsFunction(List<Long> txnids,
boolean checkHeartbeat,
boolean skipCount,
boolean isReplReplayed,
TxnErrorMsg txnErrorMsg)
TODO: expose this as an operation to client.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
execute(MultiDataSourceJdbcResource jdbcResource)
Implementations typically should execute transsactional database calls inside.
|
public AbortTxnsFunction(List<Long> txnids, boolean checkHeartbeat, boolean skipCount, boolean isReplReplayed, TxnErrorMsg txnErrorMsg)
txnids - list of transactions to abortcheckHeartbeat - value used by org.apache.hadoop.hive.metastore.txn.TxnHandler#performTimeOuts()
to ensure this doesn't Abort txn which were heartbeated after #performTimeOuts() select
and this operation.skipCount - If true, the method always returns 0, otherwise returns the number of actually aborted txnspublic Integer execute(MultiDataSourceJdbcResource jdbcResource) throws MetaException
TransactionalFunctionexecute in interface TransactionalFunction<Integer>jdbcResource - A MultiDataSourceJdbcResource instance responsible for providing all the necessary
resources to be able to perform transactional database calls.MetaException - Thrown in case of application error within the functionCopyright © 2024 The Apache Software Foundation. All rights reserved.