You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Anand Mazumdar (JIRA)" <ji...@apache.org> on 2017/02/16 21:48:42 UTC
[jira] [Created] (MESOS-7137) Custom executors cannot use any
reserved resources.
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)