[
https://issues.apache.org/jira/browse/MESOS-7655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16055480#comment-16055480
]
Michael Park commented on MESOS-7655:
-------------------------------------
{noformat}
commit 7877b46f74730b61daf5179121139b40df26c2a6
Author: Michael Park <[email protected]>
Date: Sun Jun 18 21:15:14 2017 -0700
Introduced a utility function `Resources::reservationRole` [7/20].
Review: https://reviews.apache.org/r/60015
{noformat}
{noformat}
commit 76b0f4ed82a51ab9eec3dc2b0d1542c8b29d1ab6
Author: Michael Park <[email protected]>
Date: Tue Jun 13 01:40:21 2017 -0700
Resources: Adjusted `parse` to produce new resource format [6/20].
Review: https://reviews.apache.org/r/60040
{noformat}
{noformat}
commit 0bae26707645f515317b3860b22df822dd85e718
Author: Michael Park <[email protected]>
Date: Sun Jun 18 22:04:29 2017 -0700
Resources: Adjusted the utilities to the new resource format [5/20].
Review: https://reviews.apache.org/r/60017
{noformat}
{noformat}
commit 9ac264bf533b96629dbb742e42c93b537a88ef6e
Author: Michael Park <[email protected]>
Date: Sun Jun 18 22:05:10 2017 -0700
Resources: Adjusted `operator<<` to the new resource format [4/20].
Review: https://reviews.apache.org/r/60184
{noformat}
{noformat}
commit 2d78e5aec75bdd2b6115d9a822a93e8b5fa70283
Author: Michael Park <[email protected]>
Date: Thu May 25 17:20:37 2017 -0700
Resources: Adjusted the comparators to new resource format [3/20].
Review: https://reviews.apache.org/r/60016
{noformat}
{noformat}
commit 1e220035de84245694ccf92b1fd2307aff2d3342
Author: Michael Park <[email protected]>
Date: Sun Jun 18 22:03:25 2017 -0700
Resources: Adjusted the predicates to the new resource format [2/20].
The predicate resource functions have the same preconditions as
the `Resources`, in that they require the given `Resource` object
to be validated, and in the "post-reservation-refinement" format.
As such, the corresponding preconditions have been added as a `CHECK`,
and the functions have been updated to inspect the correct fields.
Review: https://reviews.apache.org/r/60182
{noformat}
{noformat}
commit db2babf9829edbd20124c04b93910ce370d62f08
Author: Michael Park <[email protected]>
Date: Sun Jun 18 21:55:12 2017 -0700
Resources: Updated the comment to mention the resource format [1/20].
With reservation refinement, `Resources` always stores `Resource`
objects that are validated, and in the "post-reservation-refinement"
format. Added this precondition to the top of `Resources` declaration.
Review: https://reviews.apache.org/r/60181
{noformat}
> Reservation Refinement: Update the resources logic.
> ---------------------------------------------------
>
> Key: MESOS-7655
> URL: https://issues.apache.org/jira/browse/MESOS-7655
> Project: Mesos
> Issue Type: Bug
> Reporter: Michael Park
> Assignee: Michael Park
> Fix For: 1.4.0
>
>
> With reservation refinement, there is a new framework capability called
> {{RESERVATION_REFINEMENT}}. The framework is required to use the
> {{Resource.reservations}} field to express reservations if the capability is
> set, otherwise it is required to use the {{Resource.role}} and
> {{Resource.reservation}} fields.
> After the validation, we transform the resources from the old format to the
> new format and deal with the new format internally.
> This allows us to only deal with the old format at the validation phase, and
> update the code to only consider the new format for all other
> Resources-related functions.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)