@Override
  @RetrySemantics.ReadOnly
  public boolean checkFailedCompactions(CompactionInfo ci) throws MetaException {
    return jdbcResource.execute(new CheckFailedCompactionsHandler(conf, ci));
  }
Returns {@code true} if there already exists sufficient number of consecutive failures for
this table/partition so that no new automatic compactions will be scheduled.
User initiated compactions don't do this check.
Do we allow compacting whole table (when it's partitioned)?  No, though perhaps we should.
That would be a meta operations, i.e. first find all partitions for this table (which have
txn info) and schedule each compaction separately.  This avoids complications in this logic.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java