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
             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:

  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.

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

Reply via email to