Return-Path: X-Original-To: apmail-aurora-dev-archive@minotaur.apache.org Delivered-To: apmail-aurora-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C87110D66 for ; Mon, 6 Jan 2014 19:30:45 +0000 (UTC) Received: (qmail 23099 invoked by uid 500); 6 Jan 2014 19:30:45 -0000 Delivered-To: apmail-aurora-dev-archive@aurora.apache.org Received: (qmail 23078 invoked by uid 500); 6 Jan 2014 19:30:45 -0000 Mailing-List: contact dev-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list dev@aurora.incubator.apache.org Received: (qmail 23070 invoked by uid 99); 6 Jan 2014 19:30:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 19:30:45 +0000 X-ASF-Spam-Status: No, hits=-1997.9 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Jan 2014 19:30:42 +0000 Received: (qmail 22112 invoked by uid 99); 6 Jan 2014 19:30:20 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 19:30:20 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C4B661D4170; Mon, 6 Jan 2014 19:30:19 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6628490851764725454==" MIME-Version: 1.0 Subject: Re: Review Request 16636: Ensure SchedulerActive event is dispatched before leader is advertised. From: "Kevin Sweeney" To: "Maxim Khutornenko" , "Kevin Sweeney" Cc: "Bill Farner" , "Aurora" Date: Mon, 06 Jan 2014 19:30:19 -0000 Message-ID: <20140106193019.1150.23328@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Kevin Sweeney" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/16636/ X-Sender: "Kevin Sweeney" References: <20140104232158.26158.90689@reviews.apache.org> In-Reply-To: <20140104232158.26158.90689@reviews.apache.org> Reply-To: "Kevin Sweeney" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============6628490851764725454== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16636/#review31246 ----------------------------------------------------------- Ship it! Ship It! - Kevin Sweeney On Jan. 4, 2014, 3:21 p.m., Bill Farner wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/16636/ > ----------------------------------------------------------- > > (Updated Jan. 4, 2014, 3:21 p.m.) > > > Review request for Aurora, Kevin Sweeney and Maxim Khutornenko. > > > Repository: aurora > > > Description > ------- > > I dug into this after noticing SchedulerIT test flakiness (deadlock) as a result of tearDown actions being executed SchedulerActive event was being dispatched. The test is arranged such that it expects the effects of that event to occur before the test exits. The deadlock was related to EasyMock's default global lock for mock answering, so that particular deadlock does not affect us in production. > > Please see the lengthy comment in SchedulerLifecycle.java explaining the mechanics of the change. > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java bf926a740c3dafc811165e13a437853a5390bfe6 > src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java 24cd6faa4c9610b369002e842450b9b2bf87dfca > src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java 41fd3a0672a264a93814b1e2d1585232d9d506f9 > > Diff: https://reviews.apache.org/r/16636/diff/ > > > Testing > ------- > > Prior to this change, i could trigger the deadlock about 50% of the time. With this change, i've run tests many times with no issues. > > > Thanks, > > Bill Farner > > --===============6628490851764725454==--