pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <amit.kapila@huawei.com>
To: 'Amit kapila' <amit.kapila@huawei.com>
To: 'Heikki Linnakangas' <hlinnakangas@vmware.com>
Cc: 'Fujii Masao' <masao.fujii@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: BUG #7534: walreceiver takes long time to detect n/w breakdown
Date: Thu, 4 Oct 2012 17:57:52 +0530
Message-ID: <001301cda22b$ad43d650$07cb82f0$@kapila@huawei.com> (raw)
In-Reply-To: <6C0B27F7206C9E4CA54AE035729E9C382853645A@szxeml509-mbs>
References: <E1TBlX1-0003OA-SB@wrigleys.postgresql.org>
	<CAHGQGwE+vpwh6JteEggpgk5Pq45w+-os5T9OQ5vGUhbO9L8iQw@mail.gmail.com>
	<50515fcd.c32f320a.4297.ffffb186SMTPIN_ADDED@mx.google.com>
	<CAHGQGwFhcg0BwOTNzWwk8cABOCKGwFdV9e=szJK+33PDFS8yUg@mail.gmail.com>
	<6C0B27F7206C9E4CA54AE035729E9C382853264E@szxeml509-mbs>
	<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>



> -----Original Message-----
> From: pgsql-bugs-owner@postgresql.org [mailto:pgsql-bugs-
> owner@postgresql.org] On Behalf Of Amit kapila
> Sent: Thursday, October 04, 2012 3:43 PM
> To: Heikki Linnakangas
> Cc: Fujii Masao; pgsql-bugs@postgresql.org; pgsql-hackers@postgresql.org
> Subject: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w
> breakdown
> 
> On Tuesday, October 02, 2012 1:56 PM Heikki Linnakangas wrote:
> On 02.10.2012 10:36, Amit kapila wrote:
> > On Monday, October 01, 2012 4:08 PM Heikki Linnakangas wrote:
> >>> So let's think how this should ideally work from a user's point of
> view.
> >>> I think there should be just two settings: walsender_timeout and
> >>> walreceiver_timeout. walsender_timeout specifies how long a
> >>> walsender will keep a connection open if it doesn't hear from the

> 
> Thank you for suggestions.
> I have addressed your suggestions in patch attached with this mail.
> 
> Following changes are done to support replication timeout in sender as
> well as receiver:


Testing Done for the Patch
--------------------------------
1. Verified the value of new configuration parameter and changed
configuration parameter using the show command (using Show of specific 
   parameter as well as show all). 
2. Verified the new configuration parameter in --describe-config. 
3. Verified the existing parameter replication_timeout's new name in
--describe-config. 
4. Start primary and standby node with default timeout, leave it for
sometime in idle situation. 
   It should not error out due to network break error. 
5. a. Start primary and standby node with default timeout, bring down the
network. 
   b. Both sender and receiver should be able to detect network break-down
almost at same time. 
   c. Once the network is up again, connection should get re-established
successfully. 
5. a. Start primary and standby node with wal_sender_timeout less than
wal_receiver_timeout, bring down the network. 
   b. Sender should be able to detect network break-down before receiver
task. 
   c. Once the network is up again, connection should get re-established
successfully. 
6. a. Start primary and standby node with wal_receiver_timeout less than
wal_sender_timeout, bring down the network. 
   b. Receiver should be able to detect network break-down before sender
task. 
   c. Once the network is up again, connection should get re-established
successfully. 
7. a. In 5th test case, change the value of wal_receiver_status_interval to
more than wal_receiver_timeout and hence more than  
      wal_sender_timeout. 
   b. Then bring down the network down.
   c. Sender task should be able to detect network break-down once
wal_sender_timeout has lapsed. 
   d. Once the network is up again, connection should get re-established
successfully.
   Intent of this test is to check there is no dependency of
wal_sender_timeout on wal_receiver_status_interval for detection of
   Network break.

All the above tests are passed. 

With Regards,
Amit Kapila.
 





view thread (55+ messages)  latest in thread

Message-ID: <001301cda22b$ad43d650$07cb82f0$@kapila@huawei.com>
Permalink:  ../001301cda22b$ad43d650$07cb82f0$@kapila@huawei.com/
Also on:    postgresql.org/message-id/001301cda22b$ad43d650$07cb82f0$@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: BUG #7534: walreceiver takes long time to detect n/w breakdown
  In-Reply-To: <001301cda22b$ad43d650$07cb82f0$@kapila@huawei.com>
  References: <E1TBlX1-0003OA-SB@wrigleys.postgresql.org> <CAHGQGwE+vpwh6JteEggpgk5Pq45w+-os5T9OQ5vGUhbO9L8iQw@mail.gmail.com> <50515fcd.c32f320a.4297.ffffb186SMTPIN_ADDED@mx.google.com> <CAHGQGwFhcg0BwOTNzWwk8cABOCKGwFdV9e=szJK+33PDFS8yUg@mail.gmail.com> <6C0B27F7206C9E4CA54AE035729E9C382853264E@szxeml509-mbs> <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> <001301cda22b$ad43d650$07cb82f0$@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