Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfCA5-0001JC-Rv for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Aug 2017 21:35:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dfCA5-00045y-EI for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Aug 2017 21:35:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dfC8Y-0001Jx-U3 for pgsql-hackers@postgresql.org; Tue, 08 Aug 2017 21:34:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dfC8V-0004qc-8e for pgsql-hackers@postgresql.org; Tue, 08 Aug 2017 21:34:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v78LXuph018437; Tue, 8 Aug 2017 17:33:56 -0400 From: Tom Lane To: Michael Paquier cc: Craig Ringer , PostgreSQL Hackers Subject: Re: Timing-sensitive case in src/test/recovery TAP tests In-reply-to: References: <8962.1498425057@sss.pgh.pa.us> <17089.1498442945@sss.pgh.pa.us> <14061.1498502642@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Tue, 27 Jun 2017 08:36:51 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18435.1502228036.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 08 Aug 2017 17:33:56 -0400 Message-ID: <18436.1502228036@sss.pgh.pa.us> 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 Michael Paquier writes: > On Tue, Jun 27, 2017 at 3:44 AM, Tom Lane wrote: >> Looks good as far as it goes, but I wonder whether any of the other >> get_slot_xmins calls need polling too. Don't feel a need to add such >> calls until someone exhibits a failure there, but I won't be very >> surprised if someone does. And behold, we have here https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dnightjar&dt=3D201= 7-08-08%2020%3A54%3A09 # Failed test 'xmin of cascaded slot non-null with hs feedback' # at t/001_stream_rep.pl line 224. # got: '' # expected: anything else That's one of only four calls lacking a preceding wait_slot_xmins call. The ones at lines 173 and 177 seem safe because nothing has happened yet. I think the one at line 300 should be safe because the standby_2 server is shut down at that point, but is there any way that the standby_1's view hasn't updated by the time that happens? > I got the same thought, wondering as well if get_slot_xmins should be > renamed check_slot_xmins with the is() tests moved inside it as well. > Not sure if that's worth the API ugliness though. Mmm, doesn't seem like that's worth doing, but I'm half tempted to merge wait_slot_xmins into get_slot_xmins so you can't skip it ... regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers