pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <amit.kapila@huawei.com>
To: 'Fujii Masao' <masao.fujii@gmail.com>
To: hlinnaka@iki.fi
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7533: Client is not able to connect cascade standby incase basebackup is taken from hot standby
Date: Tue, 25 Sep 2012 14:05:47 +0530
Message-ID: <006401cd9af8$c36f4a70$4a4ddf50$@kapila@huawei.com> (raw)
In-Reply-To: <CAHGQGwHWbQpsQ7k=x8x=7gYuU1rOvRNdtxtdpx9+XONpMA48ww@mail.gmail.com>
References: <E1TBlPY-0003Do-75@wrigleys.postgresql.org>
	<CAHGQGwGSOtV+RfJG4GOCtLb2pDEAhLKO+mBw05Z2H0mW=x0eDQ@mail.gmail.com>
	<5051CFD2.60103@iki.fi>
	<CAHGQGwG4VXyvgHtiepiJ=e89szESOva0k+SC-WE5Wnj3NoO7Pw@mail.gmail.com>
	<5052a307.a85e320a.166f.ffff8b81SMTPIN_ADDED@mx.google.com>
	<CAHGQGwHWbQpsQ7k=x8x=7gYuU1rOvRNdtxtdpx9+XONpMA48ww@mail.gmail.com>

On Saturday, September 15, 2012 11:41 AM Fujii Masao wrote:
> On Fri, Sep 14, 2012 at 12:21 PM, Amit Kapila <amit.kapila@huawei.com>
> wrote:
> > On Thursday, September 13, 2012 10:32 PM Fujii Masao wrote:
> > On Thu, Sep 13, 2012 at 9:21 PM, Heikki Linnakangas <hlinnaka@iki.fi>
> wrote:
> >> On 12.09.2012 22:03, Fujii Masao wrote:
> >>>
> >>> On Wed, Sep 12, 2012 at 8:47 PM,<amit.kapila@huawei.com>  wrote:
> >>>>
> >>>> The following bug has been logged on the website:
> >>>>
> >>>> Bug reference:      7533
> >>>> Logged by:          Amit Kapila
> >>>> Email address:      amit.kapila@huawei.com
> >>>> PostgreSQL version: 9.2.0
> >>>> Operating system:   Suse
> >>>> Description:
> >>>>
> >>>> M host is primary, S host is standby and CS host is cascaded
> standby.
> >>>>
> >>
> >
> >

> >
> >> No, at least in my case. When recovery starts at shutdown checkpoint
> record and
> >> there is no record following the shutdown checkpoint, recovery gets
> in
> >> wait state
> >> before entering the main redo apply loop. That is, recovery starts
> waiting for
> >> new WAL record to arrive, in ReadRecord just before the redo loop.
> So moving
> >> the CheckRecoveryConsistency() call after rm_redo cannot fix the
> problem which
> >>I reported. To fix the problem, we need to make the recovery reach
> the
> >> consistent
> >> point before the redo loop, i.e., in the CheckRecoveryConsistency()
> >> just before the redo loop.
> >
> > I think may be in that case we need both the fixes, as the problem I
> have reported can be fixed with Heikki's patch.
> 
> Agreed. And we should just add the CheckRecoveryConsistency() call
> after rm_redo
> rather than moving it, as you suggested upthread.

If anybody doesn't have objection, then can we fix this in code. Basically
have the patch suggested by
Heikki with some modifications and Fujii's patch as fix of this defect and
if it's agreed upon, I can
combine both the fixes and prepare a single patch as fix of this defect.

With Regards,
Amit Kapila.





view thread (10+ messages)  latest in thread

Message-ID: <006401cd9af8$c36f4a70$4a4ddf50$@kapila@huawei.com>
Permalink:  ../006401cd9af8$c36f4a70$4a4ddf50$@kapila@huawei.com/
Also on:    postgresql.org/message-id/006401cd9af8$c36f4a70$4a4ddf50$@kapila@huawei.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: amit.kapila@huawei.com, masao.fujii@gmail.com, hlinnaka@iki.fi
  Subject: Re: BUG #7533: Client is not able to connect cascade standby incase basebackup is taken from hot standby
  In-Reply-To: <006401cd9af8$c36f4a70$4a4ddf50$@kapila@huawei.com>
  References: <E1TBlPY-0003Do-75@wrigleys.postgresql.org> <CAHGQGwGSOtV+RfJG4GOCtLb2pDEAhLKO+mBw05Z2H0mW=x0eDQ@mail.gmail.com> <5051CFD2.60103@iki.fi> <CAHGQGwG4VXyvgHtiepiJ=e89szESOva0k+SC-WE5Wnj3NoO7Pw@mail.gmail.com> <5052a307.a85e320a.166f.ffff8b81SMTPIN_ADDED@mx.google.com> <CAHGQGwHWbQpsQ7k=x8x=7gYuU1rOvRNdtxtdpx9+XONpMA48ww@mail.gmail.com> <006401cd9af8$c36f4a70$4a4ddf50$@kapila@huawei.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox