Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3852

Introduce Resources::create() factory function

    XMLWordPrintableJSON

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

          Activity

            People

              greggomann Greg Mann
              greggomann Greg Mann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: