[
https://issues.apache.org/jira/browse/MESOS-2404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14501374#comment-14501374
]
haosdent commented on MESOS-2404:
---------------------------------
[~jieyu] This code looks strange, the param type of "CREATE" function is
"Resources".
{code}
static Offer::Operation CREATE(const Resources& volumes)
{code}
But we pass "Resource" in below code. Are they legal?
{code}
Resource volume
Try<Resources> resources = shard.resources.apply(CREATE(volume));
resources = offered.apply(vector<Offer::Operation>{
CREATE(volume),
LAUNCH({task})});
{code}
> Add an example framework to test persistent volumes.
> ----------------------------------------------------
>
> Key: MESOS-2404
> URL: https://issues.apache.org/jira/browse/MESOS-2404
> Project: Mesos
> Issue Type: Task
> Reporter: Jie Yu
> Assignee: Jie Yu
> Fix For: 0.23.0
>
>
> This serves two purposes:
> 1) testing the new persistence feature
> 2) served as an example for others to use the new feature
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)