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

Guangya Liu updated MESOS-6685:
-------------------------------
    Summary: Update Role::Resources to correctly account for multi-role 
frameworks  (was: Update Role::Resources to correctly acount for multi-role 
frameworks)

> 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
>
> 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)

Reply via email to