@Override
  @RetrySemantics.CannotRetry
  public void markFailed(CompactionInfo ci) throws MetaException {
    ci.state = ci.id == 0 ? DID_NOT_INITIATE : FAILED_STATE;
    updateStatus(ci);
  }
If there is an entry in compaction_queue with ci.id, remove it
Make entry in completed_compactions with status 'f'.
If there is no entry in compaction_queue, it means Initiator failed to even schedule a compaction,
which we record as DID_NOT_INITIATE entry in history.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java