Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 248CF108CE for ; Fri, 2 Aug 2013 08:02:45 +0000 (UTC) Received: (qmail 99076 invoked by uid 500); 2 Aug 2013 08:02:44 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 98913 invoked by uid 500); 2 Aug 2013 08:02:42 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 98019 invoked by uid 99); 2 Aug 2013 08:02:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 08:02:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-wg0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 08:02:33 +0000 Received: by mail-wg0-f41.google.com with SMTP id n11so248774wgh.0 for ; Fri, 02 Aug 2013 01:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=pWTxm2kS3G93Qd98VbeK0kCJrIGLy2qnNg2xTsV8Fik=; b=C/tCmJyLCe04vDzkNdaOal1cCbH/7W3B9frdUPHq3AsxKG9OHzdm/7L6oX1s6XZnAR 8luY4ScSsEK4YHgY/GQcEMB0KTRs6Tq7XwUVp7U5UwCMPfdTNaOg8LVFVzVPMu/j6MiH dmoDzBAmZDfZ0afDbhfH8itdZN6XuaB0yrydg5pmtXKVYMuXKX7PlZT0mFVLaie3cHEr vWAFF44b67a8y4wLJWRBUjGpFiJgj6wUacjGinVXIJhIB+Orx7r4qIEQl3PugbQTun3U CTl7i0E1oCpQl01WvJPcGiTr/kuGB13PxUwwMiXsx6nipyWqVW37bXnsEIPu/HxVhezc cy9Q== X-Received: by 10.194.104.74 with SMTP id gc10mr3942240wjb.48.1375430532950; Fri, 02 Aug 2013 01:02:12 -0700 (PDT) Received: from Emmanuels-MacBook-Pro.local ([212.195.127.200]) by mx.google.com with ESMTPSA id b13sm1550519wic.9.2013.08.02.01.02.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Aug 2013 01:02:12 -0700 (PDT) Message-ID: <51FB6783.5030700@gmail.com> Date: Fri, 02 Aug 2013 10:02:11 +0200 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Weird behavior in Server-integ tests References: <51FB5DAF.9080109@gmail.com> In-Reply-To: <51FB5DAF.9080109@gmail.com> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 8/2/13 9:20 AM, Emmanuel Lécharny a écrit : > Hi guys, > > there is something that is extremelly weird i server-integ test : we > have some kind of 1 second delay for each test we run. For instance, > when we run the SearchIT tests, any test is taking 1 second at least to > execute. > > This should not be the case, because we don't inject a lot of entries. > > I suspect that MINA is the culprit here : the select() loop is waiting 1 > second before acting. > > This slows down the tests a lot, as we have around 600 of them. > > To be investigated... > After investigation, I found that the following line : public class SearchIT extends AbstractLdapTestUnit { @Rule public MultiThreadedMultiInvoker i = new MultiThreadedMultiInvoker( MultiThreadedMultiInvoker.NOT_THREADSAFE ); cause the delay. With this line, the SearchIT test runs in rouglhy 49 seconds, withhout it, it runs in 13 seconds ! The reason is that the MultiThreadMultiInvoker introduce a 1 second sleep : while(counter.get() > 0) { Thread.sleep( 1000 ); } (line 187). We shoumd probably get rid of this @rules, unless we have very good reason to use it... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com