Skip to content

Commit

Permalink
Merge pull request #108 from dvonthenen/bug/mesos0282state
Browse files Browse the repository at this point in the history
Handle the case when the recover state is empty in 0.28.2
  • Loading branch information
cantbewong authored Jun 15, 2016
2 parents 4394449 + 07c1200 commit 1659e53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions isolator/isolator/docker_volume_driver_isolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ Future<Nothing> DockerVolumeDriverIsolator::recover(
LOG(INFO) << "dvdicheckpoint::recover() called";
Result<State> 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;
Expand Down

0 comments on commit 1659e53

Please sign in to comment.