Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
Mesosphere Sprint 51
-
2
Description
A custom executor or the built-in default executor cannot launch a task if they use reserved resources as part of ExecutorInfo. This mostly happens due to the fact that we don't unallocate the Resource when comparing it with the checkpointed resources on the agent:
Resources checkpointedExecutorResources = Resources(executorInfo.resources()).filter(needCheckpointing);
The fix can be as simple as changing this to:
Resources checkpointedExecutorResources = unallocated(executorInfo.resources()).filter(needCheckpointing);