[jira] [Commented] (MESOS-7667) Update the master to use the new resource format.

2017-06-20 Thread Michael Park (JIRA)

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

Michael Park commented on MESOS-7667:
-

{noformat}
commit 2398ef71b08ff94e3c0e93683e238fbd9ea65aed
Author: Michael Park mp...@apache.org
Date:   Wed Jun 14 23:54:38 2017 -0700

Adjusted (UN)RESERVE operations to handle reservation refinement [8/20].

The logic for applying RESERVE operations now needs to ensure that the
pre-reserved resources are being refined. In other words, the RESERVE
operation should be "pushing" a single reservation to the stack. Note
that we only support "pushing" a single reservation at a time.

For UNRESERVE, the operation should "pop" the last reservation off the
stack. We only support "popping" a single reservation at a time.

This patch also replaces all of the uses of `flatten()` to
`toUnreserved()` and also removes `flatten()` entirely. We also replace
the uses of `flatten(role, reservation)` except in tests. We'll remove
this version in later patch.

Review: https://reviews.apache.org/r/60021
{noformat}
{noformat}
commit 3e8311e53db9af73ee9219480b6ec9b475578048
Author: Michael Park 
Date:   Sun Jun 18 21:12:07 2017 -0700

Adjusted the master validation to the new resource format [9/20].

Review: https://reviews.apache.org/r/60185
{noformat}
{noformat}
commit 0322de5971a72fa0750f07703994be206967158d
Author: Michael Park mp...@apache.org
Date:   Sat Jun 17 15:38:58 2017 -0700

Adjusted the master to the new resources format [10/20].

The master uses `convertResourceFormat` to convert the in-bound
resources to the "post-reservation-refinement" format, and
the out-bound resources are converted back the "pre-", or
"endpoint" format as necessary.

Review: https://reviews.apache.org/r/60069
{noformat}

> Update the master to use the new resource format.
> -
>
> Key: MESOS-7667
> URL: https://issues.apache.org/jira/browse/MESOS-7667
> Project: Mesos
>  Issue Type: Bug
>  Components: master
>Reporter: Michael Park
>Assignee: Michael Park
> Fix For: 1.4.0
>
>
> With reservation refinement, the `Resource.reservations` field is used to 
> express the notion of reservations rather than the old `Resource.role`, 
> `Resource.reservation` pair. The master code needs to be updated to reflect 
> this change.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (MESOS-7667) Update the master to use the new resource format.

2017-06-20 Thread Michael Park (JIRA)

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

Michael Park commented on MESOS-7667:
-

https://reviews.apache.org/r/60021/
https://reviews.apache.org/r/60185/

> Update the master to use the new resource format.
> -
>
> Key: MESOS-7667
> URL: https://issues.apache.org/jira/browse/MESOS-7667
> Project: Mesos
>  Issue Type: Bug
>  Components: master
>Reporter: Michael Park
>Assignee: Michael Park
>
> With reservation refinement, the `Resource.reservations` field is used to 
> express the notion of reservations rather than the old `Resource.role`, 
> `Resource.reservation` pair. The master code needs to be updated to reflect 
> this change.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)