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 1jRmh1-00061a-Ir for pgsql-committers@arkaria.postgresql.org; Fri, 24 Apr 2020 00:59:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jRmgz-0005S7-9l for pgsql-committers@arkaria.postgresql.org; Fri, 24 Apr 2020 00:59:45 +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 1jRmgx-0005Rb-OG for pgsql-committers@lists.postgresql.org; Fri, 24 Apr 2020 00:59:45 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRmgs-0000SZ-KU for pgsql-committers@lists.postgresql.org; Fri, 24 Apr 2020 00:59:42 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AFA1D5C0BC0 for ; Thu, 23 Apr 2020 20:59:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 23 Apr 2020 20:59:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=a/As+krCBzeKDI+OMN9PAEvZn3H 197tGsqz0MZAZOpo=; b=NgaaEgzZ5Fe0RKuqlrw6yxK6uXUACH3l6azz4rz2Cnq tmkgYJA72Z4z/DnMowZGGGE34BvhyPrvnPHiPAJpI1P895A/qVDM3Ssj2Ri+XYff M9Stperzp8t/Roa+xaS4IxgrgLnmrsTfUBqDhC+PyN0W+M7+BnUa9xWSyxd3Z5PX gVH/y7005ST5Y9e0K9XV4Z+Nnzw6vFgF5usr0KjbkJSJuJ4HAEhefH828Nv+2zkQ GZsP77IuP1FBf+HDi6fgInDb6L/wIsVl5tBrH/yM7bWgERkYglkCfMM4v3EgR9hT Vtxl98rqGyE+BJ7sk4MlifTqEww0dbrb4PQ5IYrROeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm2; bh=a/As+k rCBzeKDI+OMN9PAEvZn3H197tGsqz0MZAZOpo=; b=gP1cSrlmPzuvwbuAjg4LDN UkHKc1TT77c8bG+UCth80UROaBK2nLxDC/9oAwUdWQ1PWJqEuAbnZ/UW1suvhAKn vK3iI7M+S9J/mL3NOgnQ0tkVeKPha1GxiLZcFXgtP9CqHSkSD1V3x0Wlw1HrWwDJ ToBpA3LbYwk13fhcy49oR3IbaVk6HGsFAqNyt4rcp48fkmgAug6E8leD+zXrBTIf vvtI6BeIBrqZD/iibK5Z7zmRgY55vpe/7efCGw+FEG/+4hl7P+XQH1IifKIMb3ke eH1ubFCgFgWyhyH/qQ/qWvfYYxFqYiF3si850y2UW3hTlPdi/6e3pS9jlKgdUmzA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrhedtgdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecukfhppeduuddurddutd dvrddukedtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii 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 D23C23065D5D for ; Thu, 23 Apr 2020 20:59:36 -0400 (EDT) Date: Fri, 24 Apr 2020 09:59:29 +0900 From: Michael Paquier To: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix handling of WAL segments ready to be archived during crash r Message-ID: <20200424005929.GK33034@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="b/Q3JWIUAuLE0ZFy" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --b/Q3JWIUAuLE0ZFy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 23, 2020 at 11:51:16PM +0000, Michael Paquier wrote: > Fix handling of WAL segments ready to be archived during crash recovery >=20 > 78ea8b5 has fixed an issue related to the recycling of WAL segments on > standbys depending on archive_mode. However, it has introduced a > regression with the handling of WAL segments ready to be archived during > crash recovery, causing those files to be recycled without getting > archived. And the buildfarm is reporting a couple of failures related to the stability of the test: - The first reports show that on REL9_5_STABLE and REL9_6_STABLE, the first round has showed to be rather stable even on Windows, except for three animals using gcc 6.3. - In 11~, crake and piculet have been complaining. I have not been able to see any failures in the runs I did across all the branches, even on Windows. But here, all failures are related to the three following tests on standbys: not ok 8 - .ready file for WAL segment 000000010000000000000001 present in backup got removed with archive_mode=3Don on standby not ok 10 - .done file for WAL segment 000000010000000000000002 created when archive_mode=3Don on standby not ok 12 - .ready file for WAL segment 000000010000000000000002 created with archive_mode=3Dalways on standby And this visibly comes down to the fact that we don't take care enough of the timing between the restartpoints done, the startup process doing its recycling work and the archiver. The rest of the test relies on the reports of pg_stat_archiver a points to wait at as published by the archiver process. So there are two things we could do here: 1) Just remove the unstable parts of the tests (the three ones above), and keep coverage based on everything we have using pg_stat_archiver. 2) Remove the test entirely, though I would rather have us keep some coverage, particularly for primaries as this got broken. I'd rather do 2), any thoughts? -- Michael --b/Q3JWIUAuLE0ZFy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6iOfEACgkQnvQgOdby QH0+xA/+Kbhl22qe9bRoOnSoZPeREaj+9Hq2WKQK5WtFdb9q5c4FcdS+X5TUaEfk xH8l4hZ6J0BizPjmZ+nd6iSi4v9ANixKm/clJ6WnIlzN5DithmmRvu8zFSnUTV8g MBK9aCdeFzQu+eSXXk+oA5g76dPtUgVykeEWRmAnCJx6zIDkf+nkD6ldlKAiIeto 9S2/NEWz5Q3uGi15rzeH2SgTSrU6DavSwHFjNlHWq6nhoVpRQYJ/f7DQ8+HYo8aT ZEwC0uxTXNGo4n8WRn2Kfwf/vCwcdXV9zE9n2c9KDCxqrtq4G8+02DSYeolitGDC BpOveoQvb49UAaQuswuCtZsaVJV0CN9sxOysNjutMYPLG00vehfNdRhIfYqoUI3H fA3rnQBL+NZeKFGnS0KZDBKJNuUWmPM0XwwuV9i0RQq5Q4nUxTeJrZpJfaYTbGq5 mXM38Rx+Orz0tWprJcOVGoyRyUqnoVMUAKm3nEqt5pf6D8z/Buue2vNZtgzmvSGL qRyBV8a42NsI/OQPYuHYsOQ4GEorUH+K2vA85ArmK5k3Way8Lm59pGSWClClWbOK yakha0LNOTtnWFqmZruILjAzGGWZij3K/XWkVs9LMI8gg3zIkxaWTbJjGArg9666 BhKtqtOr6BulizwXTbi8WY6r9ovT+mncdi6ZV44o+e3JHCvZz/I= =6Efc -----END PGP SIGNATURE----- --b/Q3JWIUAuLE0ZFy--