Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGP6R-0008E8-7E for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jul 2022 18:16:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oGP6Q-0000V9-4P for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jul 2022 18:16:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGP6P-0000V0-RU for pgsql-hackers@lists.postgresql.org; Tue, 26 Jul 2022 18:16:17 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGP6N-00010g-Rb for pgsql-hackers@lists.postgresql.org; Tue, 26 Jul 2022 18:16:17 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4EAAE5C0063; Tue, 26 Jul 2022 14:16:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 26 Jul 2022 14:16:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1658859374; x=1658945774; bh=p7x7KuX/XC T4d64DBP+LG5cae3jo/aV/ihCXV4OnTvg=; b=Vp2zyP3ntxJCv1xnA5YOD8FX+S dFzA02gSWImNN4LvPHD5jYmZAoP8rmrago4SSwpeJssxpaV6djph9QupnBETdgHZ 8NJ4iVnJVq1h1pwjdijWAzdB7g9qfLPSVXPmvoz/juxIRoKDR/1WaAkv40twmfC6 wY1OM4/M1slIPtyAgxTaSWNCF2T/tIx5HPYEq+0GxZkpxT2epfd0vSP6lK0HBLzu 89KHmCwYNUIEECLQ1Tj5CpBvxN7dRwCQsDsiCj2SpWisW6xtMCKOHpUahreJYU72 kLGXHfxkPR7R421knErsvN72pYl2XPl+cHtaFKNO5wVfKifdLmq80G0ofFuw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1658859374; x=1658945774; bh=p7x7KuX/XCT4d64DBP+LG5cae3jo /aV/ihCXV4OnTvg=; b=WNjZRm318fPOEiUNDpjRnwrNRXCRGMkoELpuKx88ebwS NWvy+GiSOumtmzy217WaqnILPv6KGRYOB/GCSWWkyx+y3R2DFCw9uExWibsv80OV 8UaPV9V3GNcPGiUa3a7l6w3K+upCB025HeP0rTAat7CriCl0MzucW2ovJsoxFdpH BQSUXOSmXNfTChRqkAsyGRcjgjHYWFzaKL1bdf92GUliyxT7Z8M8KbtZq0A7MH83 BEqUCsIe0eAA465ovu+7nD5ftkSU4+tiXlz3Kkx48hR0kucNjcMSlmgSA9lww3yR CSh5tCvH8i53dcDVBRt7VebWJV1PtZN7t2ycjsjDtQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddutddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Jul 2022 14:16:13 -0400 (EDT) Date: Tue, 26 Jul 2022 11:16:11 -0700 From: Andres Freund To: Tom Lane Cc: Thomas Munro , Melanie Plageman , pgsql-hackers@lists.postgresql.org Subject: Re: Unstable tests for recovery conflict handling Message-ID: <20220726181611.4xw3blxigqzsz4d4@alap3.anarazel.de> References: <394950.1651077914@sss.pgh.pa.us> <447238.1651082925@sss.pgh.pa.us> <2454340.1658858273@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2454340.1658858273@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-07-26 13:57:53 -0400, Tom Lane wrote: > I happened to notice that while skink continues to fail off-and-on > in 031_recovery_conflict.pl, the symptoms have changed! What > we're getting now typically looks like [1]: > > [10:45:11.475](0.023s) ok 14 - startup deadlock: lock acquisition is waiting > Waiting for replication conn standby's replay_lsn to pass 0/33FB8B0 on primary > done > timed out waiting for match: (?^:User transaction caused buffer deadlock with recovery.) at t/031_recovery_conflict.pl line 367. > > where absolutely nothing happens in the standby log, until we time out: > > 2022-07-24 10:45:11.452 UTC [1468367][client backend][2/4:0] LOG: statement: SELECT * FROM test_recovery_conflict_table2; > 2022-07-24 10:45:11.472 UTC [1468547][client backend][3/2:0] LOG: statement: SELECT 'waiting' FROM pg_locks WHERE locktype = 'relation' AND NOT granted; > 2022-07-24 10:48:15.860 UTC [1468362][walreceiver][:0] FATAL: could not receive data from WAL stream: server closed the connection unexpectedly > > So this is not a case of RecoveryConflictInterrupt doing the wrong thing: > the startup process hasn't detected the buffer conflict in the first > place. I wonder if this, at least partially, could be be due to the elog thing I was complaining about nearby. I.e. we decide to FATAL as part of a recovery conflict interrupt, and then during that ERROR out as part of another recovery conflict interrupt (because nothing holds interrupts as part of FATAL). Greetings, Andres Freund