public TSStatus updateTriggerLocation(UpdateTriggerLocationPlan physicalPlan) {
    triggerTable.updateTriggerLocation(
        physicalPlan.getTriggerName(), physicalPlan.getDataNodeLocation());
    triggerTable.setTriggerState(physicalPlan.getTriggerName(), TTriggerState.ACTIVE);
    return new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
  }
Validate whether the trigger can be dropped.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/TriggerInfo.java