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

Method isLaunchExecutor

src/master/master.cpp:3836–3854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3834
3835
3836bool Master::isLaunchExecutor(
3837 const ExecutorID& executorId,
3838 Framework* framework,
3839 Slave* slave) const
3840{
3841 CHECK_NOTNULL(framework);
3842 CHECK_NOTNULL(slave);
3843
3844 if (!slave->hasExecutor(framework->id(), executorId)) {
3845 CHECK(!framework->hasExecutor(slave->id, executorId))
3846 << "Executor '" << executorId
3847 << "' known to the framework " << *framework
3848 << " but unknown to the agent " << *slave;
3849
3850 return true;
3851 }
3852
3853 return false;
3854}
3855
3856
3857void Master::addExecutor(

Callers

nothing calls this directly

Calls 2

hasExecutorMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected