private TSStatus handleConsensusPipeProcedure(Procedure<?> procedure) {
    TSStatus status = waitingProcedureFinished(procedure);
    if (status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
      return status;
    } else {
      // if time out, optimistically believe that this procedure will execute successfully.
      if (status.getMessage().equals(PROCEDURE_TIMEOUT_MESSAGE)) {
        return new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
      }
      // otherwise, some exceptions must have occurred, throw them.
      return new TSStatus(TSStatusCode.PIPE_ERROR.getStatusCode())
          .setMessage(wrapTimeoutMessageForPipeProcedure(status.getMessage()));
    }
  }
Generate {@link DropTriggerProcedure} and wait until it finished.

@return {@link TSStatusCode#SUCCESS_STATUS} if the trigger has been dropped successfully,
    {@link TSStatusCode#DROP_TRIGGER_ERROR} otherwise
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java