-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[xray] Fix typo concerning heartbeat_timeout_milliseconds in monitor #2586
[xray] Fix typo concerning heartbeat_timeout_milliseconds in monitor #2586
Conversation
src/ray/raylet/monitor.cc
Outdated
@@ -16,7 +16,7 @@ namespace raylet { | |||
Monitor::Monitor(boost::asio::io_service &io_service, const std::string &redis_address, | |||
int redis_port) | |||
: gcs_client_(), | |||
heartbeat_timeout_ms_(RayConfig::instance().num_heartbeats_timeout()), | |||
heartbeat_timeout_ms_(RayConfig::instance().heartbeat_timeout_milliseconds()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the way the field is used, I actually think num_heartbeats_timeout
is correct and that the field is misnamed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I fixed it!
Test PASSed. |
Test PASSed. |
Test FAILed. |
jenkins retest this please |
Test PASSed. |
This is not affecting default behavior since the two constants are the same, but we should use the correct one (e.g. if the user changes ray_constants.h).