Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.1, 1.5.0
-
Containerization: RI-16 Sp 50
-
3
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
- is related to
-
MESOS-9847 Docker executor doesn't wait for status updates to be ack'd before shutting down.
- Resolved