public DataSet getTriggerLocation(GetTriggerLocationPlan req) {
    TDataNodeLocation dataNodeLocation = triggerTable.getTriggerLocation(req.getTriggerName());
    if (dataNodeLocation != null) {
      return new TriggerLocationResp(
          new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode()), dataNodeLocation);
    } else {
      return new TriggerLocationResp(
          new TSStatus(TSStatusCode.EXECUTE_STATEMENT_ERROR.getStatusCode())
              .setMessage(String.format("Fail to get Location trigger[%s]", req.getTriggerName())),
          null);
    }
  }
Validate whether the trigger can be dropped.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/TriggerInfo.java