@Override
  public boolean submitForCleanup(CompactionRequest rqst, long highestWriteId, long txnId) throws MetaException {
    // Put a compaction request in the queue.
    long id = new GenerateCompactionQueueIdFunction().execute(jdbcResource);
    jdbcResource.execute(new InsertCompactionRequestCommand(id, CompactionState.READY_FOR_CLEANING, rqst).withTxnDetails(highestWriteId, txnId));
    return true;
  }
{@code ids} should only have txnid or lockid but not both, ideally.
Currently DBTxnManager.heartbeat() enforces this.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java