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

Resources object can be mutated through the public API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.27.0
    • None
    • None
    • Mesosphere Sprint 27
    • 3

    Description

      The Resources object current allows mutation of it's internal state through the public mutable iterator interface.
      This can cause issues when the mutation involved stripping certain qualifiers on a Resource, as they will not be summed together at the end of the mutation (even though they should be).

      The contains() math will not work correctly if two addable resources are not summed together on the lhs of the contains check.

      Attachments

        Activity

          People

            mcypark Michael Park
            jvanremoortere Joris Van Remoortere
            Joris Van Remoortere Joris Van Remoortere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: