@SuppressWarnings("squid:S4790")
  public boolean isLocalJarConflicted(TriggerInformation triggerInformation)
      throws TriggerManagementException {
    String triggerName = triggerInformation.getTriggerName();
    // A jar with the same name exists, we need to check md5
    String existedMd5 = "";
    String md5FilePath = triggerName + ".txt";

    // if meet error when reading md5 from txt, we need to compute it again
    boolean hasComputed = false;
    if (TriggerExecutableManager.getInstance().hasFileUnderTemporaryRoot(md5FilePath)) {
      try {
        existedMd5 =
            TriggerExecutableManager.getInstance().readTextFromFileUnderTemporaryRoot(md5FilePath);
        hasComputed = true;
      } catch (IOException e) {
        LOGGER.warn("Error occurred when trying to read md5 of {}", md5FilePath);
      }
    }
    if (!hasComputed) {
      try {
        existedMd5 =
            DigestUtils.md5Hex(
                Files.newInputStream(
                    Paths.get(
                        TriggerExecutableManager.getInstance().getInstallDir()
                            + File.separator
                            + triggerInformation.getJarName())));
        // save the md5 in a txt under trigger temporary lib
        TriggerExecutableManager.getInstance()
            .saveTextAsFileUnderTemporaryRoot(existedMd5, md5FilePath);
      } catch (IOException e) {
        String errorMessage =
            String.format(
                "Failed to registered trigger %s, because error "
                    + "occurred when trying to compute md5 of jar file for trigger %s ",
                triggerName, triggerName);
        LOGGER.warn(errorMessage, e);
        throw new TriggerManagementException(errorMessage);
      }
    }
    return !existedMd5.equals(triggerInformation.getJarFileMD5());
  }
check whether local jar is correct according to md5.

@throws TriggerManagementException if failed to compute md5 of the jar file.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/trigger/service/TriggerManagementService.java