[ 
https://issues.apache.org/jira/browse/MESOS-9608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16778772#comment-16778772
 ] 

Meng Zhu commented on MESOS-9608:
---------------------------------

`ResourceQuantity` part:

https://reviews.apache.org/r/70061
https://reviews.apache.org/r/70062
https://reviews.apache.org/r/70063

> Refactor and Improve `class ResourceQuantity`.
> ----------------------------------------------
>
>                 Key: MESOS-9608
>                 URL: https://issues.apache.org/jira/browse/MESOS-9608
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Meng Zhu
>            Priority: Major
>              Labels: resource-management
>
> Currently, the `ResourceQuantity` only provides a minimal map interface with 
> no built-in arithmetic and contains operations. This makes it unwieldy.
> The intention was to avoid the ambiguities between "absent-means-zero" 
> (guarantee like semantic) and "absent-means-infinite" (limits like semantic). 
> Instead of only providing a minimal interface and leave the rest to the 
> caller, we should provide two classes for each semantic:
> - "ResourceQuantities" will have "absent-means-zero" semantic
> - "ResourceLimits" will  have "absent-means-infinite" semantic
> We can have both classes derived from the current class (rename to 
> "ResourceMap") to save some common logic.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to