@Override
  @RetrySemantics.SafeToRetry
  public void markCompacted(CompactionInfo info) throws MetaException {
    jdbcResource.execute(
        "UPDATE \"COMPACTION_QUEUE\" SET \"CQ_STATE\" = :state, \"CQ_WORKER_ID\" = NULL WHERE \"CQ_ID\" = :id",
        new MapSqlParameterSource()
            .addValue("state", Character.toString(READY_FOR_CLEANING), Types.CHAR)
            .addValue("id", info.id),
        ParameterizedCommand.EXACTLY_ONE_ROW);
  }
This will mark an entry in the queue as compacted
and put it in the ready to clean state.
@param info info on the compaction entry to mark as compacted.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java