Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 62888 invoked from network); 8 Apr 2009 14:07:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 14:07:28 -0000 Received: (qmail 62243 invoked by uid 500); 8 Apr 2009 14:07:27 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 62198 invoked by uid 500); 8 Apr 2009 14:07:27 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 62190 invoked by uid 99); 8 Apr 2009 14:07:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 14:07:27 +0000 X-ASF-Spam-Status: No, hits=-2.2 required=10.0 tests=FS_REPLICA,RCVD_IN_DNSWL_MED,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of bspindler@netuitive.com does not designate 64.18.1.30 as permitted sender) Received: from [64.18.1.30] (HELO psmtp.com) (64.18.1.30) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Apr 2009 14:07:19 +0000 Received: from source ([63.240.6.3]) (using TLSv1) by exprod6ob113.postini.com ([64.18.5.12]) with SMTP ID DSNKSdyvghYqbWX6UX3FKDlIrie3Mrg/ULq2@postini.com; Wed, 08 Apr 2009 07:06:59 PDT Received: from d01smtp06.Mi8.com ([172.16.1.239]) by Outbound02.Mi8.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 8 Apr 2009 10:06:57 -0400 Received: from MI8NYCMAIL03.Mi8.com ([172.16.1.81]) by d01smtp06.Mi8.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 8 Apr 2009 10:06:56 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: master and slave are not in synch for replicated database Date: Wed, 8 Apr 2009 10:07:45 -0400 Message-ID: <8CE9C7FC34485B41B9A6B7459DFED80802B9BEAE@MI8NYCMAIL03.Mi8.com> In-Reply-To: <49DCA5F0.6000803@sun.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: master and slave are not in synch for replicated database Thread-Index: Acm4TdGqsMHjwhqMQEWLb4BCZtqHJAAATPig References: <8CE9C7FC34485B41B9A6B7459DFED80802B9BD1A@MI8NYCMAIL03.Mi8.com> <8CE9C7FC34485B41B9A6B7459DFED80801939F4F@MI8NYCMAIL03.Mi8.com> <49DC53E1.5000706@Sun.COM> <49DC83DC.4000905@sun.com> <49DC8B8D.5010600@Sun.COM> <49DCA5F0.6000803@sun.com> From: "Brian Spindler" To: "Derby Discussion" X-OriginalArrivalTime: 08 Apr 2009 14:06:56.0461 (UTC) FILETIME=[46B197D0:01C9B853] X-Virus-Checked: Checked by ClamAV on apache.org I agree. This seems even more complicated when considering the db from an embedded standpoint. The slave app has to boot the db without performing any write operations until it has become master (which I don't know how it would know this?) I presume from what I've seen there is very little documentation and testing around the different replication use cases?=20 -Brian -----Original Message----- From: Alan Burlison [mailto:Alan.Burlison@sun.com]=20 Sent: Wednesday, April 08, 2009 9:26 AM To: Derby Discussion Subject: Re: master and slave are not in synch for replicated database V Narayanan wrote: > I am not sure if you wanted to ask two separate questions or a single=20 > question, I will treat them as two separate questions You guesses right - two questions :-) >> How do you 'fail back' to the master? >=20 > fail back =3D auto failover? >=20 > You mean after you failover and your slave becomes your new master, how=20 > will you fail back to the old master? Yes. > You will have to restart replication on the slave (i.e.) you will have > to do the freezing, copying data files again on the > slave. OK, thanks. Although I guess you'd stop both and copy from the slave to the master, as that is the 'live' DB once the original failover happened. >> If I shut the master and slave down once replication is running, do I >> have to re-copy the data files from the master to the slave before=20 >> restarting the slave? >=20 > If you shutdown both the master and the slave you are restarting=20 > replication when the master comes up :), Ideally speaking > you should be re-copying data files, but I confess I have never tried=20 > this, I think if you do it without a re-copy you will get a > error similar to this, >=20 > Caused by: ERROR XRE05: The log files on the master and slave are not in > synch for replicated database 'foo'. The master log instant is 1:104173, > whereas the slave log instant is 1:103957. This is FATAL for replication > - replication will be stopped. That is going to be virtually unworkable in a production environment. --=20 Alan Burlison --