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


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/task/subtask/connector/PipeConnectorSubtask.java:
##########
@@ -118,20 +122,28 @@ protected synchronized boolean executeOnce() {
 
       releaseLastEvent(true);
     } catch (PipeConnectionException e) {
-      throw e;
+      if (!isClosed.get()) {
+        throw e;
+      }

Review Comment:
   else {
     // log something & releaseLastEvent()
   }



##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/task/subtask/connector/PipeConnectorSubtask.java:
##########
@@ -118,20 +122,28 @@ protected synchronized boolean executeOnce() {
 
       releaseLastEvent(true);
     } catch (PipeConnectionException e) {
-      throw e;
+      if (!isClosed.get()) {
+        throw e;
+      }
     } catch (Exception e) {
-      throw new PipeException(
-          "Error occurred during executing PipeConnector#transfer, perhaps 
need to check "
-              + "whether the implementation of PipeConnector is correct "
-              + "according to the pipe-api description.",
-          e);
+      if (!isClosed.get()) {
+        throw new PipeException(
+            "Error occurred during executing PipeConnector#transfer, perhaps 
need to check "
+                + "whether the implementation of PipeConnector is correct "
+                + "according to the pipe-api description.",
+            e);
+      }

Review Comment:
   else {
     // log something & releaseLastEvent()
   }



-- 
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