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

Function foreach

src/tests/cluster.cpp:807–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805 }
806
807 foreach (const ContainerID& containerId, containers.get()) {
808 process::Future<Option<ContainerTermination>> termination =
809 containerizer->destroy(containerId);
810
811 AWAIT(termination);
812
813 if (!termination.isReady()) {
814 LOG(ERROR) << "Failed to destroy container " << containerId << ": "
815 << (termination.isFailed() ?
816 termination.failure() :
817 "discarded");
818 }
819 }
820
821 // When using the composing containerizer, the assertion checking
822 // `containers->empty()` below is racy, since the containers are

Callers

nothing calls this directly

Calls 4

isReadyMethod · 0.80
isFailedMethod · 0.80
failureMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected