Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.