Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 92852 invoked from network); 11 Sep 2007 09:24:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 09:24:32 -0000 Received: (qmail 36048 invoked by uid 500); 11 Sep 2007 09:24:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 36014 invoked by uid 500); 11 Sep 2007 09:24:25 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 36005 invoked by uid 99); 11 Sep 2007 09:24:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 02:24:25 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FS_REPLICA,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-mail-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 09:24:21 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe3.eu.sun.com [192.18.6.12]) by gmp-eb-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id l8B9NxG2026147 for ; Tue, 11 Sep 2007 09:23:59 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JO700F0152J6A00@fe-emea-10.sun.com> (original mail from Jorgen.Loland@Sun.COM) for derby-dev@db.apache.org; Tue, 11 Sep 2007 10:23:59 +0100 (BST) Received: from [129.159.112.237] by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JO70098Y63XFIC0@fe-emea-10.sun.com> for derby-dev@db.apache.org; Tue, 11 Sep 2007 10:23:57 +0100 (BST) Date: Tue, 11 Sep 2007 11:23:53 +0200 From: =?UTF-8?B?SsO4cmdlbiBMw7hsYW5k?= Subject: Re: Debugging Replication In-reply-to: <46E640D4.8030804@Sun.COM> Sender: Jorgen.Loland@Sun.COM To: derby-dev@db.apache.org Message-id: <46E65EA9.5010100@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 8BIT References: <34619.1189427849637.JavaMail.jira@brutus> <46E640D4.8030804@Sun.COM> User-Agent: Thunderbird 2.0.0.0 (X11/20070419) X-Virus-Checked: Checked by ClamAV on apache.org Mayuresh Nirhali wrote: > I would like to know if there are any thoughts around debugging the > proposed Replication functionality ?? > I am not following these discussions closely enough yet! But, I would > like to know if for example the logShipper will print out some > information in derby.log when the X log is shipped OR there will be a > separate machinery like say replicationTrace OR both with different > levels of debugging information ? > > I believe this will be helpful in tracking Replication failures. > Please excuse if this question is too early in the development effort > planned! Hi Mayuresh, Thanks for a great suggestion. We will definitely take this into account :) Planning has started for junit testing of the replication feature, but as far as I know, no plans have been made for writing messages/tracing to e.g. derby.log. However, I think this is a very good idea. We should at least have messages like: derby.log on master: ReplicationMaster flushTo: 999 ReplicationMaster LogShipper: sent message 1234 to slave, highest log instant: 999 derby.log on slave: ReplicationSlave: received message 1234, highest log instant: 999 ReplicationSlave: appended log instant 555 ReplicationSlave: appended log instant 672 ReplicationSlave: appended log instant 999 It is to early to make a guess for how much and detailed information would be required, but that can be decided upon as the work progresses. The derby.log messages should be turned on by a replication_debug variable being true since a lot of messages would otherwise be generated. -- Jørgen Løland