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 1kzujS-0004cr-I8 for pgsql-committers@arkaria.postgresql.org; Thu, 14 Jan 2021 04:59:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzujR-0004IH-G3 for pgsql-committers@arkaria.postgresql.org; Thu, 14 Jan 2021 04:59:37 +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 1kzujR-0004IA-B0 for pgsql-committers@lists.postgresql.org; Thu, 14 Jan 2021 04:59:37 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzujO-0002G7-Oa for pgsql-committers@lists.postgresql.org; Thu, 14 Jan 2021 04:59:37 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 36E2E5C01DE; Wed, 13 Jan 2021 23:59:33 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 13 Jan 2021 23:59:33 -0500 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=fm3; bh=lqZ2XSYeC/U4tGl/RY7RTQohhCf htW2sXmx4IlC9foI=; b=ucqXJ+0K4YjrlOg1dMPkYJwbkAoAYY7mIUuGTp622lu csabrUOEer4BXkpnRRdN6WKnXGS4qP0G+xmO9DLa6zp/qLf9LkgyKDYrOmKi95zW wNEbjHIljKZxawn8Bh0yNlSwlw7E/1KdLuSUwZjl5OjWVDHYzLq+xeAcmGoMAeMX 70JFMOX9J2bixIdhgAnSA9m+qHjTeJWmyl6YbHf7cBH7R31Q+yV4WcPp3hW/3SfI vsa6UVbZyR3xW4sNGzkzYxwj+rNamzaUxBIlCOM8HrI3MVu8HzGGThIbPR8nj7Xn 4CnOTcfxIRUj4UqECuSR46XkNAl1BArHxf9CXFoM1+Q== 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=lqZ2XS YeC/U4tGl/RY7RTQohhCfhtW2sXmx4IlC9foI=; b=Akd+RRqhBCkcOvjA74Atwn qrXWlSkvJlCLofPpuFcR7N04+q+z+tUb4b/+zbGckvcnT7yvvsvt4EX6jFIX+ZV0 Dqz9tK+5HyI0wDM+gqkuRzo/vfddPnpc6389uATeIhWwmErQE2pbiTAf80wu4nVu XKfmdMIQLXbEkBGRu34Xwab8BcAthRbaOjpXSCuA33kde1slCTW09TUlCDlryBv4 kW/pO0hwieD2o4e57AXAxQWTkN2e6QZZjb35zOvwyNFip3hUyoO9X1YnRNTVXV6R Qo/rkr90qJbRbHHFqmLUUB9OInv3qoLJ/1ihZh2GrNAOQu3AHu9nKY5O4l9Z5e9g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtdeggdejkecutefuodetggdotefrodftvf 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 0116624005C; Wed, 13 Jan 2021 23:59:31 -0500 (EST) Date: Thu, 14 Jan 2021 13:59:29 +0900 From: Michael Paquier To: Fujii Masao Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Ensure that a standby is able to follow a primary on a newer tim Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UAr6ZV9qe2W3+3JA" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --UAr6ZV9qe2W3+3JA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Fujii-san, On Thu, Jan 14, 2021 at 03:32:52AM +0000, Fujii Masao wrote: > Ensure that a standby is able to follow a primary on a newer timeline. >=20 > Commit 709d003fbd refactored WAL-reading code, but accidentally caused > WalSndSegmentOpen() to fail to follow a timeline switch while reading from > a historic timeline. This issue caused a standby to fail to follow a prim= ary > on a newer timeline when WAL archiving is enabled. florican is telling that this test has some stability problems: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dflorican&dt=3D202= 1-01-14%2003%3A55%3A45 Here I can see that replication keeps asking for a segment that's already gone: 2021-01-13 23:34:52.104 EST [64611:1] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2021-01-13 23:34:52.104 EST [64611:2] FATAL: could not receive data =66rom WAL stream: ERROR: requested WAL segment 000000010000000000000003 has already been removed At quick glance, it seems to be an issue after the promotion of primary_2 before starting standby_3. -- Michael --UAr6ZV9qe2W3+3JA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl//z7EACgkQnvQgOdby QH0koxAAkiPE+mNjfz5i9VcBQcpvxQ5SagtGTeBHJet65u0nB11Im42YxHyzLVxy Yy8K75ALrH3DV/VVAVtrP1E7tD79GTl15ZqyprpgN0d2AEg9dvxGOODnGoxa2Gcr dNHNuODtrVRG7wNM9ZyK0zE/B/nNRqspx3gABLcxtw69fl8EXzjX8MdPJfi9OsWt /n4kUBvbt438o2jn4SURkKVfGF8zfkJVsFPXJfaviGG5QSQBxK0PlVh18zmoPRPH 8ToYTN1mCLTa5xhrQ8yvDHD3t2ZDAmAof2LiiCAyIe7AXcOctGhf2HLoOvQh7pLe V9EmSobFKFcBsYx6ufml5FAZ2eLOizIejcKkTbU2ZPlRMX2gWx4e4zCWcpoum44x YAtYnSS6YqZbMaamo5MSEnDNYpDJRjFzVlfpWo0J229T42WCJTDB/3x20OgU6eeH EL/a00hcXe8ltAsOx4umL/+jDZBpeYNRzYiWxVKJfH+2IhqgALfhBdsxqg8UR7E9 l3HQJ4ogVGxZAaTLAZjb/iXj5c5I2SoAT/yv3bzT3/4P0mjoSHb5mgMB7a/6/rx6 yjHYgS/JE5QYhQnNUvSnUIDsPnsM6JBfSBKI5qVY7ISgd3gRDia+o+AjpuR3OkF/ 1xcegADzz94t+uT8Van6BEfhRrdlYbDdGlBxtcg937Jvll7lNkY= =W1M6 -----END PGP SIGNATURE----- --UAr6ZV9qe2W3+3JA--