Clarify that Ray is not yet retrying to connect. (#12013)

This commit is contained in:
dHannasch
2020-11-17 14:01:42 -07:00
committed by GitHub
parent ca44222e03
commit f0dcf01807
+7 -3
View File
@@ -302,12 +302,16 @@ Status ConnectWithRetries(const std::string &address, int port,
break;
}
if (*context == nullptr) {
RAY_LOG(WARNING) << "Could not allocate Redis context, retrying.";
RAY_LOG(WARNING) << "Could not allocate Redis context, will retry in "
<< RayConfig::instance().redis_db_connect_wait_milliseconds()
<< " milliseconds.";
}
if ((*context)->err) {
RAY_LOG(WARNING) << "Could not establish connection to Redis " << address << ":"
<< port << " (context.err = " << (*context)->err << ")"
<< ", retrying.";
<< port << " (context.err = " << (*context)->err
<< "), will retry in "
<< RayConfig::instance().redis_db_connect_wait_milliseconds()
<< " milliseconds.";
}
// Sleep for a little.
std::this_thread::sleep_for(std::chrono::milliseconds(