Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8537

Default executor doesn't wait for status updates to be ack'd before shutting down

    XMLWordPrintableJSON

Details

    Description

      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.
          os::sleep(duration);
          terminate(self());
        }
      

      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.

      Attachments

        Issue Links

          Activity

            People

              abudnik Andrei Budnik
              gkleiman Gastón Kleiman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: