Anand Mazumdar created MESOS-7137:
-------------------------------------

             Summary: Custom executors cannot use any reserved resources.
                 Key: MESOS-7137
                 URL: https://issues.apache.org/jira/browse/MESOS-7137
             Project: Mesos
          Issue Type: Bug
            Reporter: Anand Mazumdar
            Assignee: Anand Mazumdar
            Priority: Blocker


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:

{code}
  Resources checkpointedExecutorResources =
    Resources(executorInfo.resources()).filter(needCheckpointing);
{code}

The fix can be as simple as changing this to:
{code}
  Resources checkpointedExecutorResources =
    unallocated(executorInfo.resources()).filter(needCheckpointing);
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to