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

Resources wrapper loses shared resource count information.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • None
    • None
    • allocation

    Description

      The Resources wrapper stores a Resource_ wrapper type that stores multiple copies of the a shared resource in a single Resource_ with a shared count.

      On the output paths Resources, we lose the shared counts since we convert Resource_ directly back into a single Resource, even if the shared count was > 1.

      We need to fix this in the following:

      • Implicit cast operator back to repeated ptr field of resource, this is easy to adjust.
      • Resource iteration, since we only expose const iteration, it should be possible to use an iterator adaptor to return the shared resource count times rather than just once when there are multiple copies.

      Attachments

        Activity

          People

            mzhu Meng Zhu
            bmahler Benjamin Mahler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: