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/09/02 18:33:21 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14118322#comment-14118322 ]
Dominic Hamon commented on MESOS-1751:
--------------------------------------
Possibly related to MESOS-1456? Ie, there's some {{Gauge}} referring to a valid PID that isn't getting a time-slice because it's been shut down, but hasn't yet been destroyed.
> 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
> 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)