Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 39845 invoked from network); 3 Dec 2007 08:55:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 08:55:04 -0000 Received: (qmail 20885 invoked by uid 500); 3 Dec 2007 08:54:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 20856 invoked by uid 500); 3 Dec 2007 08:54:51 -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 20846 invoked by uid 99); 3 Dec 2007 08:54:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 00:54:51 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 08:54:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1AABE714201 for ; Mon, 3 Dec 2007 00:54:43 -0800 (PST) Message-ID: <29894342.1196672083099.JavaMail.jira@brutus> Date: Mon, 3 Dec 2007 00:54:43 -0800 (PST) From: =?utf-8?Q?=C3=98ystein_Gr=C3=B8vlen_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3064) Implement the LogShipper that will enable the shipping of Log records from the master to the slave In-Reply-To: <13994899.1189420769956.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3064?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547767 ]=20 =C3=98ystein Gr=C3=B8vlen commented on DERBY-3064: ---------------------------------------- Thanks, for the patch Narayanan. Most of my comments are just cosmetical issues:=20 9. MasterController: a) I think startMaster() needs to have a timeout for how long it should wait before it tells the caller that it was not able to connect to the slave. b) setupConnection(): I am not sure, but will it always be OK to not to propagate the content of IOExcpetion? Will there never be any interesting info that could help a user diagnose why a connection is not established? c) Unused imports: PrivilegedActionException, ErrorStringBuilder d) Class declaration: Non-intuitive breakage of lines for implements/extends. e) Unnecessary white-space diff after declaration of DEFAULT_LOG_BUFFER_SIZE. f) I agree that setUpConnection should be moved, but it is still in the wrong place (under methods from ModuleSupportable interface) g) I think the JavaDoc for handleExceptions should say that it only handles IOException and StandardException. 10. AsynchronousLogShipper a) I do not understand why you let the LogShipper continue after it is has been interrupted. It seems like interrupt is only used when the thread is to be terminated. Maybe you should just terminate the thread here. b) What is the purpose of stopLogShipment()? It does not seem to stop the LogShipper from sending log anymore. I do not understand why you have changed run() to 'while(true)' instead of 'while(!stopShipping)'. 11. messages.xml a) I think messages needs to have a parameter for database name (slave messages does). If the master is replication several databases, the users needs to be told which one has terminated. b) Last message name should be R010, not R008. > Implement the LogShipper that will enable the shipping of Log records fro= m the master to the slave > -------------------------------------------------------------------------= ------------------------- > > Key: DERBY-3064 > URL: https://issues.apache.org/jira/browse/DERBY-3064 > Project: Derby > Issue Type: Sub-task > Components: Miscellaneous > Reporter: V.Narayanan > Assignee: V.Narayanan > Attachments: LogShipperImpl_v1.diff, LogShipperImpl_v1.stat, LogS= hipperImpl_v2.diff, LogShipperImpl_v2.stat, LogShipperImpl_v3.diff, LogShip= perImpl_v3.stat, LogShipperImpl_v4.diff, LogShipperImpl_v4.stat, LogShipper= Impl_v5.diff, LogShipperImpl_v5.stat, LogShipperIntegration_v1.diff, LogShi= pperIntegration_v1.stat, LogShipperIntegration_v2.diff, LogShipperIntegrati= on_v2.stat, LogShipperIntegration_v3.diff, LogShipperIntegration_v3.stat > > --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.