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 4829E6809 for ; Fri, 3 Jun 2011 06:28:29 +0000 (UTC) Received: (qmail 48433 invoked by uid 500); 3 Jun 2011 06:28:28 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 48318 invoked by uid 500); 3 Jun 2011 06:28:27 -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 48306 invoked by uid 99); 3 Jun 2011 06:28:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 06:28:25 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ayyagarikiran@gmail.com designates 209.85.212.50 as permitted sender) Received: from [209.85.212.50] (HELO mail-vw0-f50.google.com) (209.85.212.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 06:28:18 +0000 Received: by vws14 with SMTP id 14so1455674vws.37 for ; Thu, 02 Jun 2011 23:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JyH5k8MhDsvCJPkBhQr88rVtEBgBbRlT9EgsmW/WhDA=; b=lSGKfak0NAkeqU6ToDLMbilzeoEfwNMNi5Qs5keoiZCpr32+KdaMDPVYkQtn/LOa1z tLr1PqG009KRO6LaaEoj5CVRFfu/fRJ2dOMQnMEGHilalburx9RqhORT3XgQ6Hgc04Na RwiES26uZckeMVqNnHJJYRGerdIQURVBLhm0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=LPpHjhlu1CE4bVF9CFHQyEqsnWa8v4/TnFCH/BNxoJJ6tP6rlUk7LgODgAYgOgsfoE CamhEpGLgxeslUdA/5I5yUX/CEu9xCnluzg+jxMAZ5gQqHlE5AeEJ3fqPhq7mk8GIyX6 lVa2yodR459vo7SwvRv2GF95OJlHJnstXy/Qg= MIME-Version: 1.0 Received: by 10.52.181.98 with SMTP id dv2mr589321vdc.33.1307082475324; Thu, 02 Jun 2011 23:27:55 -0700 (PDT) Sender: ayyagarikiran@gmail.com Received: by 10.52.184.129 with HTTP; Thu, 2 Jun 2011 23:27:55 -0700 (PDT) In-Reply-To: References: <20110531112251.8B32623888EA@eris.apache.org> Date: Fri, 3 Jun 2011 11:57:55 +0530 X-Google-Sender-Auth: nZ8bWL2CCkt-bC-YgCt0e287qRs Message-ID: Subject: Re: svn commit: r1129630 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java From: Kiran Ayyagari To: Apache Directory Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jun 2, 2011 at 11:02 PM, Alex Karasulu wrote= : > This did not make it to the list. --Alex > > On Thu, Jun 2, 2011 at 4:32 PM, Alex Karasulu wrot= e: >> >> Is there any way we can avoid using timing dependent code like these sle= ep calls? Can't we enable a feedback mechanism where setting some variable = drives controlling this process? this test like many other integration tests involves a running server(s) in network mode and the scenario under testing is highly time bound, i.e there *will* be delays before the data gets replicated and the test has to be written based on the reasonable time limit. Though not straight forward, feedback based mechanism can be added but that requires a lot of scaffolding based on persistent search/event listeners >> If something is not readily clear as a solution maybe we can just create= a JIRA about this so we can track it and handle it later. >> >> If the machine is overloaded this will take longer and you don't know ju= st how fast the machine will work. >> Regards, >> Alex >> >> On Tue, May 31, 2011 at 2:22 PM, wrote: >>> >>> Author: kayyagari >>> Date: Tue May 31 11:22:51 2011 >>> New Revision: 1129630 >>> >>> URL: http://svn.apache.org/viewvc?rev=3D1129630&view=3Drev >>> Log: >>> o increased the sleep time to let the consumer sync after reboot before= performing any checks >>> >>> Modified: >>> =A0 =A0directory/apacheds/trunk/server-integ/src/test/java/org/apache/d= irectory/server/replication/ClientServerReplicationIT.java >>> >>> Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apach= e/directory/server/replication/ClientServerReplicationIT.java >>> URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ= /src/test/java/org/apache/directory/server/replication/ClientServerReplicat= ionIT.java?rev=3D1129630&r1=3D1129629&r2=3D1129630&view=3Ddiff >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >>> --- directory/apacheds/trunk/server-integ/src/test/java/org/apache/dire= ctory/server/replication/ClientServerReplicationIT.java (original) >>> +++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/dire= ctory/server/replication/ClientServerReplicationIT.java Tue May 31 11:22:51= 2011 >>> @@ -213,7 +213,7 @@ public class ClientServerReplicationIT >>> >>> =A0 =A0 =A0 =A0 startConsumer(); >>> >>> - =A0 =A0 =A0 =A0Thread.sleep( 2000 ); >>> + =A0 =A0 =A0 =A0Thread.sleep( 5000 ); >>> =A0 =A0 =A0 =A0 assertFalse( consumerSession.exists( deletedUserDn ) ); >>> =A0 =A0 =A0 =A0 waitAndCompareEntries( addedUserDn ); >>> =A0 =A0 } >>> >>> >> > --=20 Kiran Ayyagari