jt2594838 commented on code in PR #17182:
URL: https://github.com/apache/iotdb/pull/17182#discussion_r2780372197


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/thrift/async/IoTDBDataRegionAsyncSink.java:
##########
@@ -677,7 +683,10 @@ private void retryTransfer(final PipeTsFileInsertionEvent 
tsFileInsertionEvent)
    * @param event {@link Event} to retry
    */
   @SuppressWarnings("java:S899")
-  public void addFailureEventToRetryQueue(final Event event) {
+  public void addFailureEventToRetryQueue(final Event event, final Exception 
e) {
+    if (e instanceof PipeConnectionException || 
ThriftClient.isConnectionBroken(e)) {
+      isConnectionException = true;
+    }

Review Comment:
   Should it be set to false otherwise?



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