Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 987D418116 for ; Wed, 2 Mar 2016 18:21:49 +0000 (UTC) Received: (qmail 36132 invoked by uid 500); 2 Mar 2016 18:21:49 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 36109 invoked by uid 500); 2 Mar 2016 18:21:49 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 36094 invoked by uid 99); 2 Mar 2016 18:21:49 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 18:21:49 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 02F2C2E7AE8; Wed, 2 Mar 2016 18:21:49 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6107222275324536905==" MIME-Version: 1.0 Subject: Review Request 44275: Fixed flakiness in tests using the scheduler library. From: Anand Mazumdar To: Vinod Kone Cc: Anand Mazumdar , mesos Date: Wed, 02 Mar 2016 18:21:49 -0000 Message-ID: <20160302182149.1648.65744@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Anand Mazumdar X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/44275/ X-Sender: Anand Mazumdar Reply-To: Anand Mazumdar X-ReviewRequest-Repository: mesos --===============6107222275324536905== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/44275/ ----------------------------------------------------------- Review request for mesos and Vinod Kone. Bugs: MESOS-4029 https://issues.apache.org/jira/browse/MESOS-4029 Repository: mesos Description ------- This change fixes the tests using the scheduler library by explicitly invoking `stop()` from the testing interface. This ensures that no further callbacks are delivered to the scheduler. For one-off async callbacks that are already on the libprocess queue we need to do a `Clock::settle` to ensure they are executed before the mock object goes out of scope. Diffs ----- src/tests/mesos.hpp 0c55d5901753dc3f6e71486f727a2af7bd920429 Diff: https://reviews.apache.org/r/44275/diff/ Testing ------- make check + Induced a sleep in the async callbacks. Previously, the test used to crash but with the fix it no longer crashes. Thanks, Anand Mazumdar --===============6107222275324536905==--