-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: c++ api
-
Labels:None
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, assume the resources are flat.
There is code that constructs unflattened resources, e.g. Slave::launchExecutor. We could prevent this type of construction, however it is perfectly fine if we ensure the C++ 'Resources' class performs flattening.