Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TqIUQ-0000dM-Kt for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jan 2013 07:11:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TqIUP-00042d-OT for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jan 2013 07:11:49 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TqIUO-00042X-Ii for pgsql-hackers@postgresql.org; Wed, 02 Jan 2013 07:11:48 +0000 Received: from szxga01-in.huawei.com ([119.145.14.64]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TqIUM-0000Vj-6u for pgsql-hackers@postgresql.org; Wed, 02 Jan 2013 07:11:47 +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 AVH47394; Wed, 02 Jan 2013 15:11:29 +0800 (CST) Received: from SZXEML421-HUB.china.huawei.com (10.82.67.160) by szxeml214-edg.china.huawei.com (172.24.2.29) with Microsoft SMTP Server (TLS) id 14.1.323.3; Wed, 2 Jan 2013 15:11:29 +0800 Received: from blrprnc07ns (10.18.96.96) by szxeml421-hub.china.huawei.com (10.82.67.160) with Microsoft SMTP Server id 14.1.323.3; Wed, 2 Jan 2013 15:11:20 +0800 From: Hari Babu To: "'Boszormenyi Zoltan'" CC: "'Fujii Masao'" , "'Heikki Linnakangas'" , , "'Amit kapila'" References: <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@vmware.com> <507e9adc.43db440a.5351.fffff4d0SMTPIN_ADDED@mx.google.com> <6C0B27F7206C9E4CA54AE035729E9C382853BBED@szxeml509-mbs> <509B6E66.9070408@vmware.com> <509c9cd1.494f420a.3fc7.4362SMTPIN_ADDED@mx.google.com>, <6C0B27F7206C9E4CA54AE035729E9C38285499FA@szxeml509-mbx> <50E31370.5030405@cybertec.at> In-Reply-To: <50E31370.5030405@cybertec.at> Subject: Re: Review of "pg_basebackup and pg_receivexlog to use non-blocking socket communication", was: Re: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown Date: Wed, 2 Jan 2013 12:41:15 +0530 Message-ID: <01f001cde8b8$5b457ec0$11d07c40$@kommi@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac3oP/tIKVT2t1DVRTiqjbGzu7e6kAAaC4jw Content-Language: en-us X-Originating-IP: [10.18.96.96] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On January 01, 2013 10:19 PM Boszormenyi Zoltan wrote: >I am reviewing your patch. >=95 Is the patch in context diff format?=20 >Yes. Thanks for reviewing the patch. >=95 Does it apply cleanly to the current git master? >Not quite cleanly but it doesn't produce rejects or fuzz, only offset warnings: Will rebase the patch to head. >=95 Does it include reasonable tests, necessary doc patches, etc?=20 >The test cases are not applicable. There is no test framework for >testing network outage in "make check". > >There are no documentation patches for the new --recvtimeout=3DINTERVAL >and --conntimeout=3DINTERVAL options for either pg_basebackup or >pg_receivexlog. I will add the documentation for the same. >Per the previous comment, no. But those are for the backend >to notice network breakdowns and as such, they need a >separate patch.=20 I also think it is better to handle it as a separate patch for walsender. >=95 Are the comments sufficient and accurate? >This chunk below removes a comment which seems obvious enough >so it's not needed: >*************** >*** 518,524 **** ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto= error; >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } >=A0=20 >!=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* Check the message type. */ >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (copybuf[0] =3D=3D 'k') >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 { >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 int= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pos; >--- 559,568 ---- >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto= error; >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } >=A0=20 >!=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* Set the last reply timestam= p */ >!=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 last_recv_timestamp =3D localG= etCurrentTimestamp(); >!=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ping_sent =3D false; >!=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=20 >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (copybuf[0] =3D=3D 'k') >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 { >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 int= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pos; >*************** > >Other comments are sufficient and accurate. I will fix and update the patch. Please let me know if anything apart from above needs to be taken care. Regards, Hari babu. --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers