[4/4] mesos git commit: Enforced task launch order on the agent.

2018-04-07 Thread grag
Enforced task launch order on the agent. Up until now, Mesos does not guarantee in-order task launch on the agent. There are two asynchronous steps (unschedule GC and task authorization) in the agent task launch path. Depending on the CPU scheduling order, a later task launch may finish these two

[1/4] mesos git commit: Refactored agent task launch for better composition [1/2].

2018-04-07 Thread grag
Repository: mesos Updated Branches: refs/heads/1.5.x d2289d169 -> 3f8b19a92 Refactored agent task launch for better composition [1/2]. This helps to encapsulate a task launch into a single future which will come in handy when enforcing the task launch order. This patch also consolidated the

[3/4] mesos git commit: Fixed a potential race in `Sequence`.

2018-04-07 Thread grag
Fixed a potential race in `Sequence`. Adding item to sequence is realized by dispatching `add()` to the sequence actor. However, this could race with the sequence actor termination. This patch fixes this by enqueueing the terminate message at the end of the message queue. Also removed the clock

[2/4] mesos git commit: Refactored agent task launch for better composition [2/2].

2018-04-07 Thread grag
Refactored agent task launch for better composition [2/2]. This helps to encapsulate a task launch into a single future which will come in handy when enforcing the task launch order. Affected tests are also updated. Review: https://reviews.apache.org/r/66143/ Project: