xuanronaldo commented on code in PR #11994:
URL: https://github.com/apache/iotdb/pull/11994#discussion_r1470511526


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/protocol/thrift/async/IoTDBThriftAsyncClientManager.java:
##########
@@ -179,7 +193,31 @@ public void onError(Exception e) {
     }
 
     if (exception.get() != null) {
-      throw new PipeConnectionException("Failed to handshake.", 
exception.get());
+      if (statusCode.get() == TSStatusCode.PIPE_TYPE_ERROR.getStatusCode()) {

Review Comment:
   The status code of cluster id error is PIPE_TYPE_ERROR. Otherwise, it's 
network error.



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