You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alexander Rukletsov (JIRA)" <ji...@apache.org> on 2014/09/02 18:27:21 UTC

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

Alexander Rukletsov created MESOS-1751:
------------------------------------------

             Summary: 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)