Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Custom socket name #9766

Merged
merged 5 commits into from
Jul 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
hot fixes
  • Loading branch information
wuisawesome committed Jul 28, 2020
commit 4aed9c90976f15cf7a388063f801099eb7493e41
10 changes: 5 additions & 5 deletions src/ray/common/client_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ Status ConnectSocketRetry(local_stream_socket &socket, const std::string &endpoi
if (!ec) {
break;
}
if (0 < num_attempts && num_attempts < num_retries/2) {
if (0 < num_attempts && num_attempts < num_retries / 2) {
// 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 << ")";
} else if (num_attempts >= num_retries/2) {
RAY_LOG(ERROR) << "Retrying to connect to socket for endpoint " << endpoint
<< " (num_attempts = " << num_attempts
<< ", num_retries = " << num_retries << ")";
} else if (num_attempts >= num_retries / 2) {
RAY_LOG(ERROR) << "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));
Expand Down