mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[Redis] Note that each Redis Connect retry takes two minutes (#12183)
* Slightly alter error message so it's the same in both cases. * Each retry takes about two minutes.
This commit is contained in:
parent
97211a6170
commit
695833082d
1 changed files with 3 additions and 11 deletions
|
@ -332,17 +332,9 @@ Status ConnectWithRetries(const std::string &address, int port,
|
|||
<< errorMessage;
|
||||
break;
|
||||
}
|
||||
if (*context == nullptr) {
|
||||
RAY_LOG(WARNING) << errorMessage << " Will retry in "
|
||||
<< RayConfig::instance().redis_db_connect_wait_milliseconds()
|
||||
<< " milliseconds.";
|
||||
} else if ((*context)->err) {
|
||||
RAY_LOG(WARNING) << "Could not establish connection to Redis " << address << ":"
|
||||
<< port << " (context.err = " << (*context)->err
|
||||
<< "), will retry in "
|
||||
<< RayConfig::instance().redis_db_connect_wait_milliseconds()
|
||||
<< " milliseconds.";
|
||||
}
|
||||
RAY_LOG(WARNING) << errorMessage << " Will retry in "
|
||||
<< RayConfig::instance().redis_db_connect_wait_milliseconds()
|
||||
<< " milliseconds. Each retry takes about two minutes.";
|
||||
// Sleep for a little.
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(
|
||||
RayConfig::instance().redis_db_connect_wait_milliseconds()));
|
||||
|
|
Loading…
Add table
Reference in a new issue