private void openNonEmptyThenAbort() throws MetaException, NoSuchTxnException, TxnAbortedException {
    long txnid = openTxn();
    LockRequest req = getLockRequest();
    req.setTxnid(txnid);
    txnHandler.lock(req);
    txnHandler.abortTxn(new AbortTxnRequest(txnid));
  }
Testing whether AcidTxnCleanerService removes the correct records
from the TXNS table (via TxnStore).
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/txn/TestAcidTxnCleanerService.java