Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7137

Custom executors cannot use any reserved resources.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Sprint:
      Mesosphere Sprint 51
    • Story Points:
      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);
      

        Attachments

          Activity

            People

            • Assignee:
              anandmazumdar Anand Mazumdar
              Reporter:
              anandmazumdar Anand Mazumdar
              Shepherd:
              Benjamin Mahler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: