public void validatePipePluginUsageByPipe(String pluginName) {
    acquireReadLock();
    try {
      validatePipePluginUsageByPipeInternal(pluginName);
    } finally {
      releaseReadLock();
    }
  }
Caller should ensure that the method is called in the lock {@link #acquireWriteLock}.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/pipe/PipeTaskInfo.java