Benjamin Mahler created MESOS-1714:
--------------------------------------

             Summary: The C++ 'Resources' abstraction should keep the 
underlying resources flattened.
                 Key: MESOS-1714
                 URL: https://issues.apache.org/jira/browse/MESOS-1714
             Project: Mesos
          Issue Type: Bug
          Components: c++ api
            Reporter: Benjamin Mahler


Currently, the C++ Resources class does not ensure that the underlying 
Resources protobufs are kept flat.

This is an issue because some of the methods, e.g. 
[Resources::get|https://github.com/apache/mesos/blob/0.19.1/src/common/resources.cpp#L269],
 assume the resources are flat.

There is code that constructs unflattened resources, e.g. 
[Slave::launchExecutor|https://github.com/apache/mesos/blob/0.19.1/src/slave/slave.cpp#L3353].
 We could prevent this type of construction, however it is perfectly fine if we 
ensure the C++ 'Resources' class performs flattening.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to