Fatal check if object store dies (#4763)

This commit is contained in:
Stephanie Wang
2019-05-13 11:59:12 -07:00
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();