diff --git a/src/ray/gcs/redis_context.cc b/src/ray/gcs/redis_context.cc index c45f0b5d06f9..622b00aa5c3f 100644 --- a/src/ray/gcs/redis_context.cc +++ b/src/ray/gcs/redis_context.cc @@ -662,7 +662,8 @@ std::unique_ptr RedisContext::RunArgvSync( argv.push_back(arg.data()); argc.push_back(arg.size()); } - // Run the command with exponential backoff retries. + // Run the command. We try to reconnect if the connection is lost, and we retry with + // exponential backoff using the same connection if error happens. auto exp_back_off = ExponentialBackOff(RayConfig::instance().redis_retry_base_ms(), RayConfig::instance().redis_retry_multiplier(), RayConfig::instance().redis_retry_max_ms());