Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOTNI-0000uU-T9 for pgsql-hackers@postgresql.org; Wed, 17 Oct 2012 13:09:28 +0000 Received: from szxga01-in.huawei.com ([119.145.14.64]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOTNE-0003Cs-3G for pgsql-hackers@postgresql.org; Wed, 17 Oct 2012 13:09:28 +0000 Received: from 172.24.2.119 (EHLO szxeml214-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AQT59921; Wed, 17 Oct 2012 21:09:12 +0800 (CST) Received: from SZXEML408-HUB.china.huawei.com (10.82.67.95) by szxeml214-edg.china.huawei.com (172.24.2.29) with Microsoft SMTP Server (TLS) id 14.1.323.3; Wed, 17 Oct 2012 21:07:37 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml408-hub.china.huawei.com (10.82.67.95) with Microsoft SMTP Server id 14.1.323.3; Wed, 17 Oct 2012 21:07:30 +0800 From: Amit Kapila To: "'Amit Kapila'" , "'Heikki Linnakangas'" CC: , "'Fujii Masao'" References: <50515fcd.c32f320a.4297.ffffb186SMTPIN_ADDED@mx.google.com> <6C0B27F7206C9E4CA54AE035729E9C382853264E@szxeml509-mbs> <6C0B27F7206C9E4CA54AE035729E9C382853288B@szxeml509-mbs> <5056cb6b.29f2440a.7bd9.1633SMTPIN_ADDED@mx.google.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> <507BE1AD.2060709@vmwar e.com> <006b01cdac5c$fda685d0$f8f39170$@kapila@huawei.com> In-Reply-To: <006b01cdac5c$fda685d0$f8f39170$@kapila@huawei.com> Subject: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown Date: Wed, 17 Oct 2012 18:37:30 +0530 Message-ID: <006c01cdac68$5dd5a070$1980e150$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac2qvazn3Mt12f8/TYWrs/uBagPukgBndFXQAAMqetA= Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -3.6 (---) X-Archive-Number: 201210/1002 X-Sequence-Number: 215238 On Wednesday, October 17, 2012 5:16 PM Amit Kapila wrote: > > On Monday, October 15, 2012 3:43 PM Heikki Linnakangas wrote: > > On 13.10.2012 19:35, Fujii Masao wrote: > > > On Thu, Oct 11, 2012 at 11:52 PM, Heikki Linnakangas > > > wrote: > > >> Ok, thanks. Committed. > > > > > > I found one typo. The attached patch fixes that typo. > > > > Thanks, fixed. > > > > > ISTM you need to update the protocol.sgml because you added > > > the field 'replyRequested' to WalSndrMessage and > StandbyReplyMessage. > > > > > > > Is it worth adding the same mechanism (send back the reply > immediately > > > if walsender request a reply) into pg_basebackup and pg_receivexlog? > > > > Good catch. Yes, they should be taught about this too. I'll look into > > doing that too. > > If you have not started and you don't have objection, I can pickup this > to > complete it. > > For both (pg_basebackup and pg_receivexlog), we need to get a timeout > parameter from user in command line, as > there is no conf file here. New Option can be -t (parameter name can be > recvtimeout). > > The main changes will be in function ReceiveXlogStream(), it is a common > function for both > Pg_basebackup and pg_receivexlog. Handling will be done in same way as > we > have done in walreceiver. Some more functions where it receives the data files also need similar handling in pg_basebackup. With Regards, Amit Kapila.