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


##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/pipe/PipePluginInfo.java:
##########
@@ -152,14 +153,16 @@ public void checkBeforeCreatePipe(TCreatePipeReq 
createPipeRequest) {
 
     final PipeParameters connectorParameters =
         new PipeParameters(createPipeRequest.getConnectorAttributes());
-    if 
(!connectorParameters.hasAttribute(PipeConnectorConstant.CONNECTOR_KEY)) {
+    if (!connectorParameters.hasAnyAttributes(
+        PipeConnectorConstant.CONNECTOR_KEY, PipeConnectorConstant.SINK_KEY)) {
       final String exceptionMessage =
           "Failed to create pipe, the pipe connector plugin is not specified";

Review Comment:
   rename..



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to