pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <amit.kapila@huawei.com>
To: 'Heikki Linnakangas' <hlinnakangas@vmware.com>
Cc: 'Fujii Masao' <masao.fujii@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown
Date: Thu, 8 Nov 2012 14:23:53 +0530
Message-ID: <005701cdbd8e$9571c7c0$c0555740$@kapila@huawei.com> (raw)
In-Reply-To: <509B6E66.9070408@vmware.com>
References: <E1TBlX1-0003OA-SB@wrigleys.postgresql.org>
	<CAHGQGwGG=UxNOJX0V966CftRm4C_54XDfaR2TRzWXysFFQcJSw@mail.gmail.com>
	<6C0B27F7206C9E4CA54AE035729E9C382853288B@szxeml509-mbs>
	<CAHGQGwGWMOc-hKTyjjswzYLykAsA2+t+xpcybi6c+DkN+5dA+A@mail.gmail.com>
	<5056cb6b.29f2440a.7bd9.1633SMTPIN_ADDED@mx.google.com>
	<CAHGQGwG2cWJ+Fr+AroXEA3=26Yrc_C4yMW6HJ8rhX9nKm7Z0NA@mail.gmail.com>
	<6C0B27F7206C9E4CA54AE035729E9C38285337FF@szxeml509-mbs>
	<506972B9.6060104@vmware.com>
	<6C0B27F7206C9E4CA54AE035729E9C38285358F7@szxeml509-mbs>
	<506AA530.30106@vmware.com>
	<6C0B27F7206C9E4CA54AE035729E9C382853645A@szxeml509-mbs>
	<507597E2.8090701@vmware.com>
	<5076DD38.8020804@vmware.com>
	<CAHGQGwHyMwP8YqmcDynrsGbOax=dL7HmxAnZ68Azr36_7wJ0WQ@mail.gmail.com>
	<507BE1AD.2060709@vmware.com>
	<507e9adc.43db440a.5351.fffff4d0SMTPIN_ADDED@mx.google.com>
	<CAHGQGwHcYME6VdGwwfOrbA27A5ju+MyL4WwaUDK_tPtZ2_uNoQ@mail.gmail.com>
	<6C0B27F7206C9E4CA54AE035729E9C382853BBED@szxeml509-mbs>
	<509B6E66.9070408@vmware.com>

On Thursday, November 08, 2012 2:04 PM Heikki Linnakangas wrote:
> On 19.10.2012 14:42, Amit kapila wrote:
> > On Thursday, October 18, 2012 8:49 PM Fujii Masao wrote:
> >> Before implementing the timeout parameter, I think that it's better
> to change
> >> both pg_basebackup background process and pg_receivexlog so that they
> >> send back the reply message immediately when they receive the
> keepalive
> >> message requesting the reply. Currently, they always ignore such
> keepalive
> >> message, so status interval parameter (-s) in them always must be set
> to
> >> the value less than replication timeout. We can avoid this
> troublesome
> >> parameter setting by introducing the same logic of walreceiver into
> both
> >> pg_basebackup background process and pg_receivexlog.
> >
> > Please find the patch attached to address the modification mentioned
> by you (send immediate reply for keepalive).
> > Both basebackup and pg_receivexlog uses the same function
> ReceiveXLogStream, so single change for both will address the issue.
> 
> Thanks, committed this one after shuffling it around the changes I
> committed yesterday. I also updated the docs to not claim that -s option
> is required to avoid timeout disconnects anymore.

Thank you.
However I think still the issue will not be completely solved.
pg_basebackup/pg_receivexlog can still take long time to 
detect network break as they don't have timeout concept. To do that I have
sent one proposal which is mentioned at end of mail chain:
http://archives.postgresql.org/message-id/6C0B27F7206C9E4CA54AE035729E9C3828
53BBED@szxeml509-mbs

Do you think there is any need to introduce such mechanism in
pg_basebackup/pg_receivexlog?

With Regards,
Amit Kapila.





view thread (55+ messages)  latest in thread

Message-ID: <005701cdbd8e$9571c7c0$c0555740$@kapila@huawei.com>
Permalink:  ../005701cdbd8e$9571c7c0$c0555740$@kapila@huawei.com/
Also on:    postgresql.org/message-id/005701cdbd8e$9571c7c0$c0555740$@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, hlinnakangas@vmware.com, masao.fujii@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown
  In-Reply-To: <005701cdbd8e$9571c7c0$c0555740$@kapila@huawei.com>
  References: <E1TBlX1-0003OA-SB@wrigleys.postgresql.org> <6C0B27F7206C9E4CA54AE035729E9C382853288B@szxeml509-mbs> <CAHGQGwGWMOc-hKTyjjswzYLykAsA2+t+xpcybi6c+DkN+5dA+A@mail.gmail.com> <5056cb6b.29f2440a.7bd9.1633SMTPIN_ADDED@mx.google.com> <CAHGQGwG2cWJ+Fr+AroXEA3=26Yrc_C4yMW6HJ8rhX9nKm7Z0NA@mail.gmail.com> <6C0B27F7206C9E4CA54AE035729E9C38285337FF@szxeml509-mbs> <506972B9.6060104@vmware.com> <6C0B27F7206C9E4CA54AE035729E9C38285358F7@szxeml509-mbs> <506AA530.30106@vmware.com> <6C0B27F7206C9E4CA54AE035729E9C382853645A@szxeml509-mbs> <507597E2.8090701@vmware.com> <5076DD38.8020804@vmware.com> <CAHGQGwHyMwP8YqmcDynrsGbOax=dL7HmxAnZ68Azr36_7wJ0WQ@mail.gmail.com> <507BE1AD.2060709@vmware.com> <507e9adc.43db440a.5351.fffff4d0SMTPIN_ADDED@mx.google.com> <CAHGQGwHcYME6VdGwwfOrbA27A5ju+MyL4WwaUDK_tPtZ2_uNoQ@mail.gmail.com> <6C0B27F7206C9E4CA54AE035729E9C382853BBED@szxeml509-mbs> <509B6E66.9070408@vmware.com> <005701cdbd8e$9571c7c0$c0555740$@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