Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSbTJ-0002Ci-DK for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Nov 2018 05:36:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSbTH-0002rT-5z for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Nov 2018 05:36:11 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSbTF-0002rM-Do for pgsql-hackers@lists.postgresql.org; Fri, 30 Nov 2018 05:36:11 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSbT9-0003AO-PI for pgsql-hackers@postgresql.org; Fri, 30 Nov 2018 05:36:08 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A9CF9D0D; Fri, 30 Nov 2018 00:36:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 30 Nov 2018 00:36:00 -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=L2D5+1efVmgwNXGhWTkPD9cqmon mRWoUl8q4nI4oVB0=; b=KOx7UjTYyho2asIzOZxOTt7x4FLrSP/LwaA50ZVYz61 T4JjMsFFxrtRGaF3eQl1I1qhAut4eRovcE9Bdk/BkXcRkkv9vgxr4kwrTiVzbWAt uNskbe4fC0+o2D9vZcsP5ZrBkXlAg0DPhrupZJlhHmI5nqf0e3fx+ouT7GvLDOCj fRw0gPMlzXTQoa2TNIVOdc1tF03b6J8mYQGNauOlS9mbtRwLJkbnKjRd0lr9gy5b 47wS5JfpE+9aWQ4SMUb21fV8tzhuJt8SN5MwP+BG5HtLFpef5OpMD0G1opRHiPbz sRbX+WsZ5Pd8CjvBUmbGbcOdEHm994NtseFAH9sHxkQ== 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=L2D5+1 efVmgwNXGhWTkPD9cqmonmRWoUl8q4nI4oVB0=; b=DYLr1LWyd5k7FDBS71g1T4 kWTt8wCpqsV0uiTnbz0hE8dJ9dipGaJ0GFCeTjmzizre4PLemSNoHJd3HUXhp2cW tNfJbCEM84ohPgXSeMErjLyu1pIR+FVgoN1jJbYdRdTYQShFRv9jBdYTr6nx2fGq es2xNSK8Pvp6w8o9QexXVfRflS+DtgVtiNkI10jjV7aI0txqJk66FY6+zN6wxMJl E7ewlb/m+EohReDoFHIMq0WIzoFZspfDGPXo98/5gpoAelVht6aXDJkpMJ1+yfbY NYdLus60JHYlBYP162mdOWl8RDFUGKB6qwLOrMliBT0KcbY3cOIJHrL3oGyX7K5g == 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 840DAE405B; Fri, 30 Nov 2018 00:35:58 -0500 (EST) Date: Fri, 30 Nov 2018 14:35:55 +0900 From: Michael Paquier To: Postgres hackers Cc: Andrew Dunstan Subject: Re: pgsql: Switch pg_verify_checksums back to a blacklist Message-ID: <20181130053555.GF2267@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="w/VI3ydZO+RcZ3Ux" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --w/VI3ydZO+RcZ3Ux Content-Type: multipart/mixed; boundary="QXO0/MSS4VvK6f+D" Content-Disposition: inline --QXO0/MSS4VvK6f+D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 30, 2018 at 01:36:43AM +0000, Michael Paquier wrote: > Switch pg_verify_checksums back to a blacklist >=20 > This basically reverts commit d55241af705667d4503638e3f77d3689fd6be31, > leaving around a portion of the regression tests still adapted with > empty relation files, and corrupted cases. This is also proving to be > failing to check properly relation files located in a non-default > tablespace path. So, jacana is not in love with this commit for the tests: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Djacana&dt=3D2018-= 11-30%2003%3A34%3A23 The error is here: server started # Postmaster PID for node "node_checksum" is 14820 error running SQL: 'psql::1: ERROR: directory "/home/pgrunner/bf/root/HEAD/pgsql.build/src/bin/pg_verify_checksums/tmp_ch= eck/t_002_actions_node_checksum_data/ts_corrupt_dir" does not exist' What visibly happens is that we create a path for a tablespace which will include a corrupted table. However psql tries to run CREATE TABLESPACE but gets back a complain about the path not existing. The thing is that mkdir has been used beforehand so the path should be here. I have tested this set of TAP tests on my Windows 10 VM with MSVC 2015 before commit and those tests passed. Could it be that jacana is using msys, so a trick similar to what is used in 014_unlogged_reinit.pl is necessary? Andrew, could you confirm if the patch attached works? I would prefer not doing a blind fix if possible.. -- Michael --QXO0/MSS4VvK6f+D Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="verify-checksum-tap-msys.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/bin/pg_verify_checksums/t/002_actions.pl b/src/bin/pg_veri= fy_checksums/t/002_actions.pl index 12cca604e6..181f58f67c 100644 --- a/src/bin/pg_verify_checksums/t/002_actions.pl +++ b/src/bin/pg_verify_checksums/t/002_actions.pl @@ -113,11 +113,10 @@ command_fails(['pg_verify_checksums', '-D', $pgdata], check_relation_corruption($node, 'corrupt1', 'pg_default'); =20 # Create tablespace to check corruptions in a non-default tablespace. -my $basedir =3D $node->basedir; -my $tablespace_dir =3D "$basedir/ts_corrupt_dir"; -mkdir ($tablespace_dir); +my $tablespaceDir =3D TestLib::tempdir; +my $realTSDir =3D TestLib::real_dir($tablespaceDir); $node->safe_psql('postgres', - "CREATE TABLESPACE ts_corrupt LOCATION '$tablespace_dir';"); + "CREATE TABLESPACE ts_corrupt LOCATION '$realTSDir';"); check_relation_corruption($node, 'corrupt2', 'ts_corrupt'); =20 # Utility routine to check that pg_verify_checksums is able to detect --QXO0/MSS4VvK6f+D-- --w/VI3ydZO+RcZ3Ux Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwAzDsACgkQnvQgOdby QH1xBw/8CRSu3dJ2LTdGl5kOTS3Em2imoJESuvVDdEO6jMKdDfMrdNCOTNp9xpt6 f1WkTZpmiEwuXPesgMQ2xtdV3HeROrEEw74WCFxwK+5HoQx5nlpx2/HDBKBnYaf7 3jdPHDaN6t6dIG8z88H6D7yVOSB8iEBq4sz4CnHVt9pHNILVpCwT05nY4pgP02D6 F+HBhQkGr4QTaqrHKlw8tZqQ8rhzbyt11hy6DolHsZezKb7Dh49brgZ8pu4HsLFD DEysj/U0f8xQ53XvZsIoqrhqIJw/fSfV5mxN48J1UXSesEVR0aWL4qE+mK7umQFA vRNwlWamAQNrspnUu8WJMi/X77f92XiM+5zslcc8H/S6v8ej6N/nOvoxjqEQPFVy Zo7cvr740azRwLtmhYunuQsFL0VKml7bb1DCHM57/VjpMV2bZ5s9a+wxRM12vpoQ fEiLeaX9No/oeoWsqyZpdEQi14ict0PyjhMTYEcCEaJrMrbyHri3dCoWsnwp2hVj xeab4JuavlQzAVm9A01V6JtNq4+RD+mGStyUVn3j/fkfgcFmj8avESWFvP+zuAE9 1iuZUUUirlanFZhg86GmKTTuxembB+LXI8FKUmiEqtU+xpkXCAGt5rMme1W6AJZY A2zTvHDL70L77csUxV+kNA8uwAInMIQNbjOdlaEV+2+rmwRaFWk= =zAkE -----END PGP SIGNATURE----- --w/VI3ydZO+RcZ3Ux--