Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1raTN9-009sah-91 for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Feb 2024 04:29:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1raTN7-00AKTe-1I for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Feb 2024 04:29:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1raTN5-00AKTW-0o for pgsql-hackers@lists.postgresql.org; Thu, 15 Feb 2024 04:29:16 +0000 Received: from fout3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1raTMz-006oln-Au for pgsql-hackers@postgresql.org; Thu, 15 Feb 2024 04:29:13 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id 7DFBB13800D3; Wed, 14 Feb 2024 23:29:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 14 Feb 2024 23:29:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1707971347; x=1708057747; bh=VSZ9A+xtWK yPVeACHJsu48HuYtrOszYZxzmHLJFaW1o=; b=b8/K2UJalLadBYMHHyxAcy6cxh YTNqUZ1s5IWtpJ4i+t48I9+mx3X7XW2XwjwRmL9eoUwt+jce+zsvG7hi7DY2BLSj HErQecOJM1hhsCbIAiLDbl9KB5UA5o6geF/I0nsP+IrmqsWenEhdLKOKPiLr2hjS MX6/q74FTgUceBCwhRQhEZENsjRU3ileliwWa+uIwTRh1w3qXN+AOGyC8vWNPVhR q2XEBdNMA6r5it0seBHf0LDO9tK8vuA+bf5Q0XeIChpAMEtlR33tjy+XsGP+N3dX zONdvy9NIGbbxrlp70pN416zVz4G1ZQ2ku7xNL6LSBJNKbCZH8HQS0XeoFrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1707971347; x=1708057747; bh=VSZ9A+xtWKyPVeACHJsu48HuYtrO szYZxzmHLJFaW1o=; b=uq2dl6NdunTL+uo7fX8b7hQ8La4lzLGh54XVN0BaTnPZ JTgTF3vC+Mb/PjYYiMhY7mqZ9JjokuvVQMU5HszuvSauu/5eOsFqByqj70n/0Lbc 0U7QgZM3g1R7WQkhFomxYCycf/Gis1y2Ngddanhh+HYwQp6dPoB7loiBtRPPDk4R 7TNvUdHe+B3m3kV+OdiS/AfTTDYBY6pMbePEe2EnwmWfy+aRsTIeO9w8Uh3Aay3j cv/WFZaWwjNms6c4TTGJA1UKLPickDDt+kRgZqOx0x2pE7UBa8fTHBABn1vsp6Af PDe7sBpEpEDumvZuViol3hrBOwVLoXnrghQstsxaXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt jeenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeevteejgfejveegudekheeiueei ueeiveeuiedugeehveeugffgudeuleegleeiteenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Feb 2024 23:29:05 -0500 (EST) Date: Thu, 15 Feb 2024 13:28:56 +0900 From: Michael Paquier To: Thomas Munro Cc: Anton Voloshin , Pg Hackers Subject: Re: 039_end_of_wal: error in "xl_tot_len zero" test Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uH+FwzKSGp5+u52u" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --uH+FwzKSGp5+u52u Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 19, 2024 at 11:35:30AM +1300, Thomas Munro wrote: > On Fri, Jan 19, 2024 at 1:47=E2=80=AFAM Anton Voloshin > wrote: >> I believe there is a small problem in the 039_end_of_wal.pl's >> "xl_tot_len zero" test. It supposes that after immediate shutdown the >> server, upon startup recovery, should always produce a message matching >> "invalid record length at .*: wanted 24, got 0". However, if the >> circumstances are just right and we happened to hit exactly on the edge >> of WAL page, then the message on startup recovery would be "invalid >> magic number 0000 in log segment .*, offset .*". The test does not take >> that into account. >=20 > Thanks for figuring this out! Right, I see. I will look more closely > when I'm back from summer vacation in a few days, but first reaction: Thomas, are you planning to look at that? -- Michael --uH+FwzKSGp5+u52u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmXNkwgACgkQnvQgOdby QH2IRw/9HZrLtkr8NnegQQ5IqF+VWIqsYgI5L06TnOYstQYJf0/H+yKjiEf+X/ps Ps5hxw3o8CddoBqo85BZ45n0UF8NmNdwNvrEtHJR7fvk/sKZo50zdd1Z7/PYtrOp md4CFV1MfFG0GjdMduYOFLoL3mGjWjGiExGyhYlpdbYdLLNQbG469jYG+pBMr7ab YvmUKPqojpX7kpPJ/uCL60FWVGcGcEQTzbWpkgvkNtHc1qVn1ulBA4cLI+TFn+rO 3Rk6ZYqunVH1buWdsyymsTpC1HviRUYthZNPaVGWtvkInDjYosZ6Tc8hhW10eZZK ZxI12yYYRnc2jrLZlQAeW9PLty3hFtvQcJMrUIUvWdf/a96IsLe6/bilT3B9/JZk ZgpmqmQSIihagKAUpJRw0gJ488g8PR2JtgWgk/nCA4g4EsUI13TkbBXdQ27VAVxS fCqyGmjY4O/rR2QjYdL4168QOu1Hn5D69umZCRV2XJAFORtIfMJc0t35BQIU/OnN S6PtSNWL8ZW/25s8Lz54M04QZaw9IDcd5PbQsNIe21bvxt5xtasu/dl9i3s//2D9 B99Oyk9F5RKX0L63QNJNGKMDQfag0Kthr3+8fbUMlZ6RxvYJu2gYcw532rp81/7o Lw4mqIDNDjfb0hARqX4RUkCnQ43uY8GHgE6mQN/T5Fwd2hcX/aA= =PX8/ -----END PGP SIGNATURE----- --uH+FwzKSGp5+u52u--