From dev-return-38671-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Fri Jul 29 05:01:56 2011 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 194C76753 for ; Fri, 29 Jul 2011 05:01:56 +0000 (UTC) Received: (qmail 8478 invoked by uid 500); 29 Jul 2011 05:01:13 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 7160 invoked by uid 500); 29 Jul 2011 05:00: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 6852 invoked by uid 99); 29 Jul 2011 04:59:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 04:59:48 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 04:59:41 +0000 Received: by wwe5 with SMTP id 5so3147525wwe.1 for ; Thu, 28 Jul 2011 21:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=AO2IR93C4392mdMqwlRw8EeINBNWGJLxzm2KdRtmedk=; b=RBVtqYBcpCXPUiXKdcP++pzgTiQwUpa0gBsYAn7rh+z8wLR+Vd8k1qkh1Xblz8SuoK prt8RZdk6iBHkfi+L3o1E2/5/8JxUAy6aAEsIsemzvI4mMuQHhMQwyFQ1yJRWs0z/Xx2 LCQwlt3188l8FcaUj3zlvKlCRakafaiDBzFKE= Received: by 10.227.42.7 with SMTP id q7mr1118674wbe.60.1311915560423; Thu, 28 Jul 2011 21:59:20 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net [78.192.106.184]) by mx.google.com with ESMTPS id y29sm1146619weq.9.2011.07.28.21.59.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jul 2011 21:59:19 -0700 (PDT) Message-ID: <4E323E26.4000805@gmail.com> Date: Fri, 29 Jul 2011 06:59:18 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Replication tests Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, I have just added a simple test, quite basic atm, which involve a consumer not associated with a DS. The idea was to check that the replication protocol was correct, even if some unexpected events occur (like a brutal stop of the consumer). It seems to work well for additions. Note that we don't store the replicated entries anywhere, we just count them. The first test was to check that we correctly replicate 1000 entries created in the producer. We can now use more than one MockConsumer, to mimic the replication on many servers. I will continue with such tests, stopping the consumer in the middle of replication, to see if the replication starts back where it stopped. Also note that the code is pretty dirty atm, it will be improved in the coming days. What is good so far is that the protocol implementation seems to be solid. Kira, you did an excellent job ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com