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

Check invariants in `Sorter::update`.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Reviewable
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      This JIRA tracks the implementation of this TODO:

      // TODO(bmahler): Check invariants between old and new allocations.
      // Namely, the roles and quantities of resources should be the same!
      // Otherwise, we need to ensure we re-calculate the shares, as
      // is being currently done, for safety.

      After this check, we can remove the line that sets the sorter to be dirty after this call and we can avoid an unnecessary sort.

      Note that the shared resources feature currently assumes the invariants.

      Attachments

        Activity

          People

            anindya.sinha Anindya Sinha
            xujyan Yan Xu
            Neil Conway Neil Conway
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: