Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 4604 invoked from network); 1 Feb 2008 12:56:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 12:56:33 -0000 Received: (qmail 84044 invoked by uid 500); 1 Feb 2008 12:55:32 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 84017 invoked by uid 500); 1 Feb 2008 12:55:32 -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 84005 invoked by uid 99); 1 Feb 2008 12:55:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 04:55:32 -0800 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA 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; Fri, 01 Feb 2008 12:55:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CF4DA714047 for ; Fri, 1 Feb 2008 04:55:17 -0800 (PST) Message-ID: <15415248.1201870517821.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 04:55:17 -0800 (PST) From: =?utf-8?Q?J=C3=B8rgen_L=C3=B8land_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3205) Replication: Add connection url command options for starting, stopping slave and for failover In-Reply-To: <20606458.1195128343797.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-3205?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] J=C3=B8rgen L=C3=B8land updated DERBY-3205: --------------------------------- Attachment: stopSlave_v1c.diff stopSlave_v1c.stat Thanks for reviewing stopSlave v1b =C3=98ystein. I have addressed most of your comments in patch 1c. Comments: 2e: When a database is shut down, the TransactionResource needs to be clean= ed. I found no other way of doing this than setting up a connection. 3a: I don't know why the message is logged twice in derby.log. The same app= lies to startSlave. I will fix this in a later patch. 4a: You are right, but this is not harmful since recover() is only allowed = to redo log files that have been completed. The only problem with letting r= ecover complete redo of a log file is that it may take a little longer befo= re the database is shut down. To fix this, we could use a reference to the = recovery thread and interrupt it, or we could make FileLogger check for the= replicationSlaveException between every redone log record. However, I don'= t think this added complexity is justified at the moment. At least not unti= l we get feedback that this is unacceptable. Unless you feel strongly about= it, I will not address this now. 5b: XRE40 is thrown from locations where the database name is unknown (in B= asicDatabase). I'm reluctant to add the dbname to the method signature only= to get it into the exception text, especially since this exception is only= thrown from connection-attempts that have to specify the db name. > Replication: Add connection url command options for starting, stopping sl= ave and for failover > -------------------------------------------------------------------------= -------------------- > > Key: DERBY-3205 > URL: https://issues.apache.org/jira/browse/DERBY-3205 > Project: Derby > Issue Type: Sub-task > Components: JDBC > Affects Versions: 10.4.0.0 > Reporter: J=C3=B8rgen L=C3=B8land > Assignee: V.Narayanan > Attachments: derby-3205_startslave_dontcommit.diff, derby-3205_st= artslave_dontcommit.stat, failover_impl_3205_NotForCommit_v1.diff, failover= _impl_3205_NotForCommit_v1.stat, failover_impl_3205_v1.diff, failover_impl_= 3205_v1.stat, failover_impl_3205_v2.diff, failover_impl_3205_v2.stat, Socke= t_Close_Fix_v1.diff, Socket_Close_Fix_v1.stat, startSlave_1a.diff, startSla= ve_1a.stat, startSlave_1b.diff, startSlave_1b.stat, startSlave_1c.diff, sta= rtSlave_1d.diff, StopSlave_impl_3205_NotForCommit_v1.diff, StopSlave_impl_3= 205_NotForCommit_v1.stat, stopSlave_v1a.diff, stopSlave_v1a.stat, stopSlave= _v1b.diff, stopSlave_v1b.stat, stopSlave_v1c.diff, stopSlave_v1c.stat > > > Add commands to start and stop the replication slave using properties or = connection url. Example: > 'jdbc:derby:;startSlave=3Dtrue'; > 'jdbc:derby:;stopSlave=3Dtrue'; > 'jdbc:derby:;failover=3Dtrue; > Connection url options that must be recognized: > startSlave=3Dtrue > stopSlave=3Dtrue > failover=3Dtrue > slaveHost=3D (optional, defaults to localhost) (only for startSlave= ) > slavePort=3D (optional, defaults to 8001) (only for startSlave) > See functional specification on Derby-2872 for further details. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.