protected boolean replIsCompactionDisabledForTable(Table tbl) {
    // Compaction is disabled until after first successful incremental load. Check HIVE-21197 for more detail.
    boolean isCompactDisabled = ReplUtils.isFirstIncPending(tbl.getParameters());
    if (isCompactDisabled) {
      LOG.info("Compaction is disabled for table " + tbl.getTableName());
    }
    return isCompactDisabled;
  }
Get the partition being compacted.
@param ci compaction info returned from the compaction queue
@return metastore partition, or null if there is not partition in this compaction info
@throws MetaException if underlying calls throw, or if the partition name resolves to more than
one partition.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorThread.java