You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Dominic Hamon (JIRA)" <ji...@apache.org> on 2014/11/03 20:02:35 UTC

[jira] [Updated] (MESOS-1751) Request for "stats.json" cannot be fulfilled after stopping the framework

     [ https://issues.apache.org/jira/browse/MESOS-1751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominic Hamon updated MESOS-1751:
---------------------------------
    Sprint: Mesos Q3 Sprint 6, Twitter Q4 Sprint 1, Twitter Mesos Q4 Sprint 2, Twitter Mesos Q4 Sprint 3  (was: Mesos Q3 Sprint 6, Twitter Q4 Sprint 1, Twitter Mesos Q4 Sprint 2)

> Request for "stats.json" cannot be fulfilled after stopping the framework 
> --------------------------------------------------------------------------
>
>                 Key: MESOS-1751
>                 URL: https://issues.apache.org/jira/browse/MESOS-1751
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.21.0
>         Environment: Test case launched on Mac OS X Mavericks.
>            Reporter: Alexander Rukletsov
>            Assignee: Dominic Hamon
>            Priority: Minor
>
> Request for "stats.json" to master from a test case doesn't work after calling frameworks' {{driver.stop()}}. However, it works for "state.json". I think the problem is related to {{stats()}} continuation {{_stats()}}. The following test illustrates the issue:
> {code:title=TestCase.cpp|borderStyle=solid}
> TEST_F(MasterTest, RequestAfterDriverStop)
> {
>   Try<PID<Master> > master = StartMaster();
>   ASSERT_SOME(master);
>   Try<PID<Slave> > slave = StartSlave();
>   ASSERT_SOME(slave);
>   MockScheduler sched;
>   MesosSchedulerDriver driver(
>       &sched, DEFAULT_FRAMEWORK_INFO, master.get(), DEFAULT_CREDENTIAL);
>   driver.start();
>   
>   Future<process::http::Response> response_before =
>       process::http::get(master.get(), "stats.json");
>   AWAIT_READY(response_before);
>   driver.stop();
>   Future<process::http::Response> response_after =
>       process::http::get(master.get(), "stats.json");
>   AWAIT_READY(response_after);
>   driver.join();
>   Shutdown();  // Must shutdown before 'containerizer' gets deallocated.
> }
> {code}



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