SteveYurongSu commented on code in PR #11963:
URL: https://github.com/apache/iotdb/pull/11963#discussion_r1470791857


##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/pipe/PipeTaskInfo.java:
##########
@@ -158,6 +162,61 @@ private void checkBeforeCreatePipeInternal(TCreatePipeReq 
createPipeRequest)
     throw new PipeException(exceptionMessage);
   }
 
+  public void checkBeforeAlterPipe(TAlterPipeReq alterPipeRequest) throws 
PipeException {
+    acquireReadLock();
+    try {
+      checkBeforeAlterPipeInternal(alterPipeRequest);
+    } finally {
+      releaseReadLock();
+    }
+  }
+
+  private void checkBeforeAlterPipeInternal(TAlterPipeReq alterPipeRequest) 
throws PipeException {
+    if (isPipeExisted(alterPipeRequest.getPipeName())) {

Review Comment:
   fast failing here should be better



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to