Hi

I tried to use grace period with default Mesos executor. I assumed it works
as follow:

   1. Start command: sh -c "command ..."
   2. Sent SIGSTOP to process tree: sh, command
   3. Sent SIGTERM to process tree: sh, command
   4. Wait for processes to finish or grace period to elapse
   5. sh finish while command could be still running and attached to init
   6. Sent SIGKILL to process tree: command

I notice that SIGKILL is not sent and executor finished when sh returns.
When Mesos is running with POSIX contenerizer this leads command to live
forever (if it ignores SIGTERM). When contenerizer is used command is
killed when it's container is destroyed.

Is this desired behavior? How to use grace period with default executor?

Thanks
Tomek

Reply via email to