Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRq5s-0002iY-T9 for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Jul 2017 01:24:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dRq5s-0006Ky-9z for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Jul 2017 01:24:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dRq5r-0006Kn-Mt for pgsql-hackers@postgresql.org; Mon, 03 Jul 2017 01:24:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dRq5p-0007uE-7y for pgsql-hackers@postgresql.org; Mon, 03 Jul 2017 01:24: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 v631NxAt015460; Sun, 2 Jul 2017 21:23:59 -0400 From: Tom Lane To: Michael Paquier cc: PostgreSQL mailing lists Subject: Re: Race-like failure in recovery/t/009_twophase.pl In-reply-to: References: <908.1498965681@sss.pgh.pa.us> <31663.1499032944@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Mon, 03 Jul 2017 10:15:15 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15458.1499045039.1@sss.pgh.pa.us> Date: Sun, 02 Jul 2017 21:23:59 -0400 Message-ID: <15459.1499045039@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 Mon, Jul 3, 2017 at 7:02 AM, Tom Lane wrote: >> Anyone have a different view of what to fix here? > No, this sounds like a good plan. What do you think about the attached? Oh, that's a good way. I just finished testing a fix that involved not turning on the second server's sync commit until later (it seems that only the first action on "paris" is really at risk currently). But disabling sync commit for individual transactions is clearly cleaner and more extensible to future test script changes. FWIW, I just got done doing a few check-world cycles with the delay in WalReceiverMain plus speeding up pg_ctl.c to WAITS_PER_SEC = 1000. No other problems seem to be revealed this way. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers