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

Custom executors cannot use any reserved resources.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.2.0
    • 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);
      

      Attachments

        Activity

          People

            anandmazumdar Anand Mazumdar
            anandmazumdar Anand Mazumdar
            Benjamin Mahler Benjamin Mahler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: