You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Andrei Budnik (Jira)" <ji...@apache.org> on 2020/01/20 18:49:00 UTC

[jira] [Assigned] (MESOS-8537) Default executor doesn't wait for status updates to be ack'd before shutting down

     [ https://issues.apache.org/jira/browse/MESOS-8537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Budnik reassigned MESOS-8537:
------------------------------------

    Assignee: Andrei Budnik

> Default executor doesn't wait for status updates to be ack'd before shutting down
> ---------------------------------------------------------------------------------
>
>                 Key: MESOS-8537
>                 URL: https://issues.apache.org/jira/browse/MESOS-8537
>             Project: Mesos
>          Issue Type: Bug
>          Components: executor
>    Affects Versions: 1.4.1, 1.5.0
>            Reporter: Gastón Kleiman
>            Assignee: Andrei Budnik
>            Priority: Major
>              Labels: containerization, default-executor, mesosphere
>
> The default executor doesn't wait for pending status updates to be acknowledged before shutting down, instead it sleeps for one second and then terminates:
> {code}
>   void _shutdown()
>   {
>     const Duration duration = Seconds(1);
>     LOG(INFO) << "Terminating after " << duration;
>     // TODO(qianzhang): Remove this hack since the executor now receives
>     // acknowledgements for status updates. The executor can terminate
>     // after it receives an ACK for a terminal status update.
>     os::sleep(duration);
>     terminate(self());
>   }
> {code}
> The event handler should exit if upon receiving a {{Event::ACKNOWLEDGED}} the executor is shutting down, no tasks are running anymore, and all pending status updates have been acknowledged.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)