Project: mesos
Issue MESOS-1751: Request for "stats.json" cannot be fulfilled after stopping the framework 
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 > master = StartMaster(); ASSERT_SOME(master); Try > slave = StartSlave(); ASSERT_SOME(slave); MockScheduler sched; MesosSchedulerDriver driver( &sched, DEFAULT_FRAMEWORK_INFO, master.get(), DEFAULT_CREDENTIAL); driver.start(); Future response_before = process::http::get(master.get(), "stats.json"); AWAIT_READY(response_before); driver.stop(); Future response_after = process::http::get(master.get(), "stats.json"); AWAIT_READY(response_after); driver.join(); Shutdown(); // Must shutdown before 'containerizer' gets deallocated. } {code}
Story points: 5