Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86D8317AAD for ; Tue, 11 Nov 2014 22:58:34 +0000 (UTC) Received: (qmail 95151 invoked by uid 500); 11 Nov 2014 22:58:34 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 95118 invoked by uid 500); 11 Nov 2014 22:58:34 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 95108 invoked by uid 99); 11 Nov 2014 22:58:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2014 22:58:34 +0000 Date: Tue, 11 Nov 2014 22:58:33 +0000 (UTC) From: "Dominic Hamon (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MESOS-1751) Request for "stats.json" cannot be fulfilled after stopping the framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 (was: Mesos Q3 Sprint 6, Twitter Q4 Sprint 1, Twitter Mesos Q4 Sprint 2, Twitter Mesos Q4 Sprint 3) > 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 > 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} -- This message was sent by Atlassian JIRA (v6.3.4#6332)