it is called when the executor process that is launched (fork/exec) by the
slave exits.


On Wed, Jul 3, 2013 at 8:22 PM, Wang Yu <[email protected]> wrote:

> Hi all,
>
> I am tracking the task lost problem in my mesos cluster, is there anyone
> would tell me when will "void
> ProcessBasedIsolationModule::processExited(pid_t pid, int status)" be
> called?
> Thanks very much!
>
> void ProcessBasedIsolationModule::processExited(pid_t pid, int status)
> {
>   foreachkey (const FrameworkID& frameworkId, infos) {
>     foreachpair (
>         const ExecutorID& executorId, ProcessInfo* info,
> infos[frameworkId]) {
>       if (info->pid == pid) {
>         LOG(INFO) << "Telling slave of lost executor " << executorId
>                   << " of framework " << frameworkId;
>
>         dispatch(slave,
>                  &Slave::executorTerminated,
>                  frameworkId,
>                  executorId,
>                  status,
>                  false,
>                  "Executor exited");
>
>         // Try and cleanup after the executor.
>         killExecutor(frameworkId, executorId);
>         return;
>       }
>     }
>   }
> }
>
>
> 2013-07-04
>
>
>
> Wang Yu

Reply via email to