[ 
https://issues.apache.org/jira/browse/MESOS-4534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120516#comment-15120516
 ] 

Michael Park commented on MESOS-4534:
-------------------------------------

{noformat}
commit db6e26d6cfef064237c903af40d1315c1cf76ca6
Author: Michael Park <[email protected]>
Date:   Wed Jan 27 14:04:09 2016 -0800

    Disallowed non-`const` iteration over `Resources`.

    Review: https://reviews.apache.org/r/42876
{noformat}

> 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
>             Fix For: 0.27.0
>
>
> 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)

Reply via email to