mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 21:25:33 +08:00
Fatal check if object store dies (#4763)
This commit is contained in:
committed by
Robert Nishihara
parent
62c949bbd5
commit
1622fc21fc
@@ -42,6 +42,11 @@ void ObjectStoreNotificationManager::NotificationWait() {
|
||||
void ObjectStoreNotificationManager::ProcessStoreLength(
|
||||
const boost::system::error_code &error) {
|
||||
notification_.resize(length_);
|
||||
if (error) {
|
||||
RAY_LOG(FATAL)
|
||||
<< "Problem communicating with the object store from raylet, check logs or "
|
||||
<< "dmesg for previous errors: " << boost_to_ray_status(error).ToString();
|
||||
}
|
||||
boost::asio::async_read(
|
||||
socket_, boost::asio::buffer(notification_),
|
||||
boost::bind(&ObjectStoreNotificationManager::ProcessStoreNotification, this,
|
||||
@@ -50,7 +55,7 @@ void ObjectStoreNotificationManager::ProcessStoreLength(
|
||||
|
||||
void ObjectStoreNotificationManager::ProcessStoreNotification(
|
||||
const boost::system::error_code &error) {
|
||||
if (error.value() != boost::system::errc::success) {
|
||||
if (error) {
|
||||
RAY_LOG(FATAL)
|
||||
<< "Problem communicating with the object store from raylet, check logs or "
|
||||
<< "dmesg for previous errors: " << boost_to_ray_status(error).ToString();
|
||||
|
||||
Reference in New Issue
Block a user