Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icMy2-0004bY-So for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2019 05:12:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icMy1-00027k-FR for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2019 05:12:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icMy1-00027d-2x for pgsql-hackers@lists.postgresql.org; Wed, 04 Dec 2019 05:12:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1icMxt-0004fu-8V for pgsql-hackers@lists.postgresql.org; Wed, 04 Dec 2019 05:12:47 +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 xB45CReB025747; Wed, 4 Dec 2019 00:12:27 -0500 From: Tom Lane To: Amit Kapila cc: Mark Dilger , Andrew Dunstan , PostgreSQL Hackers Subject: Re: Windows buildfarm members vs. new async-notify isolation test In-reply-to: References: <32745.1575303812@sss.pgh.pa.us> <7221b3b4-fc7f-404d-5cf6-830d3aa6800d@2ndQuadrant.com> <362bca0b-1c1c-c760-ab19-b5d9a14c69ea@gmail.com> <13003.1575391248@sss.pgh.pa.us> Comments: In-reply-to Amit Kapila message dated "Wed, 04 Dec 2019 10:31:18 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25745.1575436347.1@sss.pgh.pa.us> Date: Wed, 04 Dec 2019 00:12:27 -0500 Message-ID: <25746.1575436347@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Kapila writes: > On Tue, Dec 3, 2019 at 10:10 PM Tom Lane wrote: >> Hmm ... just looking at the code again, could it be that there's >> no well-placed CHECK_FOR_INTERRUPTS? Andrew, could you see if >> injecting one in what 790026972 added to postgres.c helps? > I also tried to analyze this failure and it seems this is a good bet, > but I am also wondering why we have never seen such a timing issue in > other somewhat similar tests. For ex., one with comment (# > Cross-backend notification delivery.). Do they have a better way of > ensuring that the notification will be received or is it purely > coincidental that they haven't seen such a symptom? TBH, my bet is that this *won't* fix it, but it seemed like an easy thing to test. For this to fix it, you'd have to suppose that we never do a CHECK_FOR_INTERRUPTS during a COMMIT command, which is improbable at best. regards, tom lane