From 1622fc21fc50fd2decda93c328aab03f38c120a9 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Mon, 13 May 2019 11:59:12 -0700 Subject: [PATCH] Fatal check if object store dies (#4763) --- .../object_manager/object_store_notification_manager.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ray/object_manager/object_store_notification_manager.cc b/src/ray/object_manager/object_store_notification_manager.cc index 746f4d622..5245a94ac 100644 --- a/src/ray/object_manager/object_store_notification_manager.cc +++ b/src/ray/object_manager/object_store_notification_manager.cc @@ -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();