You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Jay Guo (JIRA)" <ji...@apache.org> on 2016/12/06 04:22:58 UTC

[jira] [Assigned] (MESOS-6685) Update Role::Resources to correctly account for multi-role frameworks

     [ https://issues.apache.org/jira/browse/MESOS-6685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Guo reassigned MESOS-6685:
------------------------------

    Assignee: Jay Guo

> Update Role::Resources to correctly account for multi-role frameworks
> ---------------------------------------------------------------------
>
>                 Key: MESOS-6685
>                 URL: https://issues.apache.org/jira/browse/MESOS-6685
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Guangya Liu
>            Assignee: Jay Guo
>
> With single role framework, when call the get role endpoint, the master will return resources for this role with all of the resources for a framework who is using this role. But with multi-role framework, the get role endpoint should only return resources used by one of the roles in a multi-role framework.
> {code}
>   Resources resources() const
>   {
>     Resources resources;
>     foreachvalue (Framework* framework, frameworks) {
>       resources += framework->totalUsedResources;
>       resources += framework->totalOfferedResources;
>     }
>     return resources;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)