public TriggerClassLoader updateAndGetActiveClassLoader() throws IOException {
    TriggerClassLoader deprecatedClassLoader = activeClassLoader;
    activeClassLoader = new TriggerClassLoader(libRoot);
    deprecatedClassLoader.close();
    return activeClassLoader;
  }
Call this method to get up-to-date ClassLoader before registering triggers
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/trigger/service/TriggerClassLoaderManager.java