Details
-
Improvement
-
Status: Accepted
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
The Resources object currently does not have a Resources::create() factory function. This means that we must rely on the constructor to make new Resources, and errors during construction cannot be caught properly (invalid resources are dropped implicitly). We should introduce a factory function which returns Try<Resources> to remedy this. Callers with an invariant that the resources are valid would use CHECK_NOTERROR.
Attachments
Issue Links
- relates to
-
MESOS-6222 Improve organization of methods related to Resources
- Open