You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joris Van Remoortere (JIRA)" <ji...@apache.org> on 2016/01/27 20:54:39 UTC

[jira] [Created] (MESOS-4534) Resources object can be mutated through the public API

Joris Van Remoortere created MESOS-4534:
-------------------------------------------

             Summary: Resources object can be mutated through the public API
                 Key: MESOS-4534
                 URL: https://issues.apache.org/jira/browse/MESOS-4534
             Project: Mesos
          Issue Type: Bug
            Reporter: Joris Van Remoortere
            Assignee: Michael Park
            Priority: Blocker


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)