From b6a12d1f9790d205fc7a0a8867bb462f3d1b92da Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Thu, 15 Nov 2018 12:14:19 -0800 Subject: [PATCH] Fix socket retry message (#3325) --- src/ray/raylet/local_scheduler_client.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ray/raylet/local_scheduler_client.cc b/src/ray/raylet/local_scheduler_client.cc index 1f481a79e..ec9434cbc 100644 --- a/src/ray/raylet/local_scheduler_client.cc +++ b/src/ray/raylet/local_scheduler_client.cc @@ -67,8 +67,10 @@ int connect_ipc_sock_retry(const char *socket_pathname, int num_retries, if (fd >= 0) { break; } - if (num_attempts == 0) { - RAY_LOG(ERROR) << "Connection to socket failed for pathname " << socket_pathname; + if (num_attempts > 0) { + RAY_LOG(ERROR) << "Retrying to connect to socket for pathname " << socket_pathname + << " (num_attempts = " << num_attempts + << ", num_retries = " << num_retries << ")"; } /* Sleep for timeout milliseconds. */ usleep(timeout * 1000);