You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Gastón Kleiman (JIRA)" <ji...@apache.org> on 2018/02/02 20:39:00 UTC

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

Gastón Kleiman created MESOS-8537:
-------------------------------------

             Summary: 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: Task
          Components: executor
    Affects Versions: 1.4.1, 1.5.0
            Reporter: Gastón Kleiman


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
(v7.6.3#76005)