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 1kPzFG-0007TH-Ho for pgsql-committers@arkaria.postgresql.org; Wed, 07 Oct 2020 02:31:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPzFF-0007WL-Ep for pgsql-committers@arkaria.postgresql.org; Wed, 07 Oct 2020 02:31:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPzFF-0007WE-9G for pgsql-committers@lists.postgresql.org; Wed, 07 Oct 2020 02:31:57 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPzFD-00055s-2L for pgsql-committers@lists.postgresql.org; Wed, 07 Oct 2020 02:31:56 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1D1D45C00DB; Tue, 6 Oct 2020 22:31:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 06 Oct 2020 22:31:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=DLyoUNjKrleohvcj3EkAD/AXESE 4/Ox3F08NvzyVhiA=; b=Ikgbyd//ykdY8lVoRHJ7VEsjWSyi+eOXxdSB80uj+QT QXlWpw+7CdG5+dCEhNFpedNSJU5xDwmWdAlTdOin51r+1qygvlgOLL0KeJO7nvId 40TB2iOGL2Xmr2yIehkJSrIdkOmUTj0hJJlxmQAdPfoQShGL4PdHtnXQpcemc5Lo bVTxS0tpeZWpjOf5ESUf8MTY+cjajV7W9tByQCJ/GYXhJgO3lJfMtmdjLryqhfIi I+4+36iq2eL5Vq0GbN4ZJSh6WnVQ6MyGn3CX7hklmuRNs/eqFYNf27yK+n93BC7S xRrdvDMCrmeas2nIx1m3PAS7RLkg7upxNJNwr0Q2XdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=DLyoUN jKrleohvcj3EkAD/AXESE4/Ox3F08NvzyVhiA=; b=TA0Tb87RnB4x/d4igOM5aA OmO6EgDIQgKrhqeJVHL7P8GUVzGg0yTxffzd8xMd2EqnzGEUHgQNQy6by2URhDek iZXyGCnWoay9vqvcKoh/iPs656tPv6pWwcnwpz+yrJAeaTWZV4r9Ap6I1l0uc8lo SwYNdDDon6t81QEknDmCFC8M+sd/cmwVfF+N0q9sRcgpWKemNywIHdPqq6MPeVJm OxyIlOP6AjwQVV6b4/69JhCAhZl+ffZxv1hFVjexR8PJHRlb3jSzxqwpa41aZbtG +fPHNFxOQjjqk/TKfos/ymOKEH560mc6qFhZnLVZ5PbGgju+fILM9v6G3xz1OYew == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeehgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffdufeeflefghfekudekkeevvddu gfeiteekkeduleefvefhhffftdduffeiuedtnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphepudduuddruddtvddrudektddrudekheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquh hivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id EF4753064610; Tue, 6 Oct 2020 22:31:52 -0400 (EDT) Date: Wed, 7 Oct 2020 11:31:50 +0900 From: Michael Paquier To: Noah Misch Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix race in test of pg_switch_wal(). Message-ID: <20201007023150.GE2256@paquier.xyz> References: <20200914082707.GH2183@paquier.xyz> <20201007020327.GC1422897@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZRyEpB+iJ+qUx0kp" Content-Disposition: inline In-Reply-To: <20201007020327.GC1422897@rfd.leadboat.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ZRyEpB+iJ+qUx0kp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 06, 2020 at 07:03:27PM -0700, Noah Misch wrote: > There's a new 020_archive_status.pl failure: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dmandrill&dt=3D2= 020-10-05%2023%3A02%3A17 >=20 > Would you like to diagnose/fix that one? Wow, thanks. This does not looks like an issue coming directly from the test though: 2020-10-06 00:20:46.786 UTC [20906622:8] LOG: restored log file "000000010= 000000000000003" from archive 2020-10-06 00:20:46.803 UTC [10748670:1] ERROR: could not open file "pg_xl= og/000000010000000000000003": No such file or directory 2020-10-06 00:20:46.880 UTC [21496712:4] psql ERROR: checkpoint request fa= iled 2020-10-06 00:20:46.880 UTC [21496712:5] psql HINT: Consult recent message= s in the server log for details. [...] error running SQL: 'psql::1: ERROR: checkpoint request failed HINT: Consult recent messages in the server log for details.' And it looks like a race condition between the checkpointer and the startup process. This failure involves the first checkpoint triggered in $standby2 after it gets created, with this standby reaching a consistent point before triggering a manual restartpoint. That's a bit strange though, the startup process considers that this segment is restored, but the checkpointer complains that it does not actually exist, so that's in contradiction with what the startup process tells us. :/ -- Michael --ZRyEpB+iJ+qUx0kp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl99KJYACgkQnvQgOdby QH2tLhAAlZnl859u2d6qBEbf1AaFEXKREj1y4m7fJyP9e+TVJ+OInK2h3klfg+jt RQ768APfxIKmPqXQauqM+W9lXSOtRCN6mVKj7ufYr2D58w0tR+7517Yig/jV3Aw6 SC+o91ky4JaLEGgtX5a6tmuwd4Iwqmis91L8vCEj/o9aO+fvcvyDq0bcDmK0s6ga o1vf1za1GoaiXp3fJpxPsRMTPSPgImdAwDwZxQZguqEkLnZ+3xiH/n/1pKRswHX5 Hm+I/V6c1j90fwZGlZIBF6TumrTAPc9C/U2zX7a895JTb/CWw3uPgM9o+LT08HXb Z7dur2VkYfgmBqMUsDknnq8SF9Ouk1skZ1LjlE5factI4C9xiem1j0RchXBGO/Ae ci7vMtg07J3KEmuDmX9djYL8K1a2g4QY1fz0nndD2DqifCiQLAksWYG2od1XPeCA NqUjrzr4ySWp21hg57io69UDBjkw0uU2tSGEq25Hxw8uq53mttxlA5iP3ZckvzQ6 jWFUVTBlIlanE+fvOgjYjIasWG1RCjOoqLcJNTCMkJppzcxoV6lGIJz+GgXtVzyP lgIPZX1GczdfNWtNJ0dl4kl9pFlMA6ySNt6XAX7z3JIxO1+ThK7qiFigixOnWTSA d7A2xGS/7eh77y60CrUvOmrWdvQdiBN/aAgKoBBSEfiQStvhuyQ= =i9Jy -----END PGP SIGNATURE----- --ZRyEpB+iJ+qUx0kp--