@Override
  @RetrySemantics.ReadOnly
  public Set<CompactionInfo> findPotentialCompactions(int abortedThreshold,
      long abortedTimeThreshold, long lastChecked) throws MetaException {
    return new FindPotentialCompactionsFunction(conf, abortedThreshold, abortedTimeThreshold, lastChecked).execute(jdbcResource);
  }
This will look through the completed_txn_components table and look for partitions or tables
that may be ready for compaction.  Also, look through txns and txn_components tables for
aborted transactions that we should add to the list.
@param abortedThreshold  number of aborted queries forming a potential compaction request.
@return set of CompactionInfo structs.  These will not have id, type,
or runAs set since these are only potential compactions not actual ones.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java