You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Guangya Liu (JIRA)" <ji...@apache.org> on 2015/09/01 11:17:45 UTC

[jira] [Commented] (MESOS-3338) Dynamic reservations are not counted as used resources in the master

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

Guangya Liu commented on MESOS-3338:
------------------------------------

[~mcypark] I see that allocator has an API HierarchicalAllocatorProcess<RoleSorter, FrameworkSorter>::updateAvailable, but this API was not called by master now, can you please show some comments on this? Thanks.

> Dynamic reservations are not counted as used resources in the master
> --------------------------------------------------------------------
>
>                 Key: MESOS-3338
>                 URL: https://issues.apache.org/jira/browse/MESOS-3338
>             Project: Mesos
>          Issue Type: Bug
>          Components: allocation, master
>            Reporter: Alexander Rukletsov
>            Assignee: Guangya Liu
>            Priority: Minor
>
> Dynamically reserved resources should be considered used or allocated and hence reflected in Mesos bookkeeping structures and {{state.json}}.
> I expanded the {{ReservationTest.ReserveThenUnreserve}} test with the following section:
> {code}
>   // Check that the Master counts the reservation as a used resource.
>   {
>     Future<process::http::Response> response =
>       process::http::get(master.get(), "state.json");
>     AWAIT_READY(response);
>     Try<JSON::Object> parse = JSON::parse<JSON::Object>(response.get().body);
>     ASSERT_SOME(parse);
>     Result<JSON::Number> cpus =
>       parse.get().find<JSON::Number>("slaves[0].used_resources.cpus");
>     ASSERT_SOME_EQ(JSON::Number(1), cpus);
>   }
> {code}
> and got
> {noformat}
> ../../../src/tests/reservation_tests.cpp:168: Failure
> Value of: (cpus).get()
>   Actual: 0
> Expected: JSON::Number(1)
> Which is: 1
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)