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

Custom executors cannot use any reserved resources.

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprint:
                Mesosphere Sprint 51 ended 21/Feb/17
                View on Board

                Slack

                  Issue deployment