Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g799S-0008LJ-L3 for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Oct 2018 01:07:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g799Q-00051I-Cm for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Oct 2018 01:07:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g799P-00051A-Hf for pgsql-bugs@lists.postgresql.org; Tue, 02 Oct 2018 01:07:00 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g799L-0006T3-I9 for pgsql-bugs@postgresql.org; Tue, 02 Oct 2018 01:06:59 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6E74020F24; Mon, 1 Oct 2018 21:06:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 01 Oct 2018 21:06:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=BcqK/HkA3M+1oJI0Cq3Y5z1RbBP9KZL+1Uxt8Aa8pqQ=; b=U1Oz67RX +XLSA3DNDAZNicFcg7uNQzgEVWTs/4wwWYq76R72rF7fdGTHYzpIzjyGa5GCa1W8 CEClXaA2wvm8PbJuipwYwKGKKFcKKpxxUHYAlHDz09NRdmXtpixmyngz9KzJihpR T73NNdBUIG3f2ZUrnhI0gLNK++uiWM60qCiLDK4TK2pu68nEK8viL9q9BaIVLMaL sGo8fiIeI8PDBRQDGb86M0RYTuyAEWR7I3D20P214WNyMm0Cj+0ZocCWil3cTYXC YZMaSUCURD2XAbpaKGUkSn5PodZPH5XPCE4xL0Lzp4rCprif1CmGtKKjqCO1pB/3 LfgGNSOyxE33LQ== 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-sender :x-me-sender:x-sasl-enc; s=fm3; bh=BcqK/HkA3M+1oJI0Cq3Y5z1RbBP9K ZL+1Uxt8Aa8pqQ=; b=jUA3Cttt+z9gQ3QbElqmYCEAREwBW/G5pN3tTSVPdUFyx QOlRHlllEANl03qltcAIB5IndVsE2LR8/NWnd5XQhMHugefkMN0/9DLZNXokvIPH rSxUNRkImc2C6V9IyFHHNlFZNdQUffY6zMwM4oDGxk9tEDSc1tXJIr8bXTfr71On YxxG4obcxVVMxPsdO3C3bdw2SUPkrys1QZwkVp5DSGk9ZvXgYsoB6/8ZGCUPRAS/ r0P8w4jtxVRDMMKHqTlq5XENZtzzB0ADCjuma1yYAAzoV874PDNBWWHDmiyxheTB HPZHllLWavDyqOQx0yvE1SbVao2BydvPQr+rxFZOg== X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 8ED59102D6; Mon, 1 Oct 2018 21:06:52 -0400 (EDT) Date: Tue, 2 Oct 2018 10:06:49 +0900 From: Michael Paquier To: Thomas Crayford Cc: pgsql-bugs@postgresql.org Subject: Re: "could not open file =?utf-8?B?InBn?= =?utf-8?Q?=5Fwal=2F=E2=80=A6=22=3A_No_such_file_or_directory=22_potential?= =?utf-8?Q?_crashin?= =?utf-8?Q?g?= bug due to race condition between restartpoint and recovery Message-ID: <20181002010649.GS11712@paquier.xyz> References: <20180924153705.GB1103@paquier.xyz> <20180928225917.GB1823@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rQAi4ZBraoACHIeu" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --rQAi4ZBraoACHIeu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 01, 2018 at 12:43:02PM +0100, Thomas Crayford wrote: > Sorry for the slow response on this - I was oncall last week and it was > quite distracting and busy. >=20 > With respect to the restore_command, we use wal-e: > https://github.com/wal-e/wal-e, specifically: >=20 > envdir DIRECTORY wal-e wal-fetch "%f" "%p" Okay, so that should be fine. When it comes to such race conditions, putting directly into the suspicious code paths calls to pg_usleep would most likely help in enforcing the bug to show up. -- Michael --rQAi4ZBraoACHIeu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAluyxKkACgkQnvQgOdby QH27dQ//RfYCRKsgB+gdzKPZGKWPuDiiuKFTe5ZQ07svfr+SLE0kPlddW0JUukqm 9LdX8RxtcdvLGm5ov6n5evYacneHvDzjHp4r764u6rZcmCJDMDHyQyYVW6s29fuM 9y2V6/NJTEHDf9MaSrfM0IXDmUPTcQQvBA0lOo9WOHNz+roGUxvuZHvsUxc2jPqu UX12gwdNRbhpYRhNb9qd43vsi0/1+YWxLCYy9+Ha6CsZl9HByUm/Ra5lzh8oqjC2 3ASKqlfbIq9KB8ooDU+z7ONQJ8JQvLVw6stlFxJHu30NA9TsF9Dv3/OzjkfNpJSl adwK6UX5ru/OLexRyYpYbYerWIQQAAUK08BotfJCokL/ynbYpVArfttXvVtKRqEW ukwk/blKkBtaeKFKwkDfAVkvp4TIy/PJkpsvJ8TX2VqtSrhIpkbEwfQRAbEACHeL djdiepW36YZ3oN/JzW/OdjKozyEONWZ/0yTohDvX3ykEa61oByroVSQJ8nRLOuFl l3DK51quJIhMXNrfswfeBaP0FBQjZGejIlyYxiVfswMJdU6Jus3L7kMMEvbRrTBa N4VyR6aRh/Qv/OVmjbaTGh58iLnJNDDIb0PrVPXuGRLYCxtgOq9tWy/LTu54osPN cCTfL8mr/rHp5qJ4ELfiAj2kd8yWf7QPkoG8Oiz3VxcGP7fHVXg= =SdCw -----END PGP SIGNATURE----- --rQAi4ZBraoACHIeu--