You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Bannier (Jira)" <ji...@apache.org> on 2019/10/01 11:17:00 UTC

[jira] [Created] (MESOS-9984) Provide a function to compute a common "reservation ancestor" between two 'Resources'

Benjamin Bannier created MESOS-9984:
---------------------------------------

             Summary: Provide a function to compute a common "reservation ancestor" between two 'Resources'
                 Key: MESOS-9984
                 URL: https://issues.apache.org/jira/browse/MESOS-9984
             Project: Mesos
          Issue Type: Task
            Reporter: Benjamin Bannier


We need to provide a function to compute a common "reservation ancestor" between two resources, {{Try<Resources> getReservationAncestor(const Resources&, const Resources&)}}.

The common ancestor can be found by repeatedly popping dynamic reservations from the full {{Resources}}.

We should test the following cases:
 * either LHS or RHS empty
 * both empty -> empty ancestor
 * {{STATIC}} reservations on path
 * partially reserved LHS/RHS (partially reserved: not all {{Resource}} have the same reservation).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)