MCPcopy Create free account
hub / github.com/apache/mesos / checkpoint

Method checkpoint

src/slave/containerizer/docker.cpp:772–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770
771
772Try<Nothing> DockerContainerizerProcess::checkpoint(
773 const ContainerID& containerId,
774 pid_t pid)
775{
776 CHECK(containers_.contains(containerId));
777
778 Container* container = containers_.at(containerId);
779
780 container->executorPid = pid;
781
782 if (container->pidCheckpointPath.isSome()) {
783 LOG(INFO) << "Checkpointing pid " << pid
784 << " to '" << container->pidCheckpointPath.get() << "'";
785
786 return slave::state::checkpoint(
787 container->pidCheckpointPath.get(), stringify(pid));
788 }
789
790 return Nothing();
791}
792
793
794Future<Nothing> DockerContainerizer::recover(

Callers 15

TEST_PFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
operator()Method · 0.80
foreachFunction · 0.80
runMethod · 0.80
launchExecutorMethod · 0.80
updateFrameworkMethod · 0.80
subscribeMethod · 0.80
registerExecutorMethod · 0.80
removeFrameworkMethod · 0.80
recoverFrameworkMethod · 0.80

Calls 7

checkpointFunction · 0.85
NothingClass · 0.85
atMethod · 0.80
stringifyFunction · 0.50
containsMethod · 0.45
isSomeMethod · 0.45
getMethod · 0.45

Tested by 3

TEST_PFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64