SteveYurongSu commented on code in PR #14373:
URL: https://github.com/apache/iotdb/pull/14373#discussion_r1879206267
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/client/IoTDBDataNodeAsyncClientManager.java:
##########
@@ -281,18 +284,22 @@ public void onError(Exception e) {
return false;
}
- private void waitHandshakeFinished(AtomicBoolean isHandshakeFinished) {
+ private void waitHandshakeFinished(final AtomicBoolean isHandshakeFinished) {
try {
- while (!isHandshakeFinished.get()) {
+ final long startTime = System.currentTimeMillis();
+ while (!isHandshakeFinished.get()
Review Comment:
Better throwing exceptions when timeout or closed?
--
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]