From 07c120081c934c180b8355dc3df7f567115eb618 Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Wed, 15 Jun 2016 12:45:37 -0700 Subject: [PATCH] Handle the case when the recover state is empty in 0.28.2 --- isolator/isolator/docker_volume_driver_isolator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isolator/isolator/docker_volume_driver_isolator.cpp b/isolator/isolator/docker_volume_driver_isolator.cpp index f16fc2a..2ebc501 100644 --- a/isolator/isolator/docker_volume_driver_isolator.cpp +++ b/isolator/isolator/docker_volume_driver_isolator.cpp @@ -177,6 +177,10 @@ Future DockerVolumeDriverIsolator::recover( LOG(INFO) << "dvdicheckpoint::recover() called"; Result resultState = mesos::internal::slave::state::recover(mesosWorkingDir, true); + if (resultState.isNone()) { + LOG(INFO) << "dvdicheckpoint::recover(): recover state is NONE"; + return Nothing(); + } State state = resultState.get(); LOG(INFO) << "dvdicheckpoint::recover() returned: " << state.errors;