mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
[Core] Socket creation race condition bug fixes (#9764)
* fix issues * hot fixes * test * test * Always info log
This commit is contained in:
@@ -48,9 +48,11 @@ Status ConnectSocketRetry(local_stream_socket &socket, const std::string &endpoi
|
||||
break;
|
||||
}
|
||||
if (num_attempts > 0) {
|
||||
RAY_LOG(ERROR) << "Retrying to connect to socket for endpoint " << endpoint
|
||||
<< " (num_attempts = " << num_attempts
|
||||
<< ", num_retries = " << num_retries << ")";
|
||||
// Socket is created by the raylet. Due to a race condition it might not
|
||||
// be created before we try connecting.
|
||||
RAY_LOG(INFO) << "Retrying to connect to socket for endpoint " << endpoint
|
||||
<< " (num_attempts = " << num_attempts
|
||||
<< ", num_retries = " << num_retries << ")";
|
||||
}
|
||||
// Sleep for timeout milliseconds.
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(timeout_in_ms));
|
||||
|
||||
Reference in New Issue
Block a user