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 1jMElt-00075N-DW for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2020 17:45:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jMEls-0007YD-Bx for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2020 17:45:52 +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 1jMElr-0007V4-U9 for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2020 17:45:52 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jMElk-0003QR-5l for pgsql-hackers@postgresql.org; Wed, 08 Apr 2020 17:45:51 +0000 Received: by mail-qt1-x841.google.com with SMTP id 71so515509qtc.12 for ; Wed, 08 Apr 2020 10:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=Icm1kYaXvElRMY0fQtTaf8otp3kH4Y3GuFfiEqiyVrk=; b=KKU49ZRn4RjS7pYSGhZI8qzorAmdZWVIzczMZFAgIYFof/TJlJPem80qjsjF9k5I1P 6SQ5c3z1Xf+ngWzWRo/vY/5j2KIs0e79IEBbQBw1ExI5O0kVCe/0iHT4kwRwYNen/nE2 SV/HTyh9NRasf7ThtNA7kfldX+tj4wKDjBqe6JEeelCiHJkIMAVWwkJ01Ozsle5miLj9 oMNqS5ABlc74Nh97ukWLuom67BpcQo0wKnV1Uk/kBZhsz/tcvY8/WsFr6/1ySUQ8s5JD k3Qi2vyc9U7z2cXs8PlpZkvG9Br3N76gSnLQbXuzwKmx35EBxDxsgJzjdwGn0b7jByVs KDLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=Icm1kYaXvElRMY0fQtTaf8otp3kH4Y3GuFfiEqiyVrk=; b=dqvE3jlRvzcDNsdymdqtvQ9umQUK26OdP3Y9w4ydXSayWz8capvOGjtfhAJtS+V7+A BZ+CI1bUQ19cQm2azK5aNlYy6Xuut20FoBYe6/Sgux+6M/MZWILAkmqalhwdFd4MwqBe wKItuiJwyTbVJbTQDBkrwsqbtnEOsQvJN0ZuSq6us/ysgDRGiFH/y5VYX6CpFmKnsjD6 5ofeCOTWN70WjXgvoYuHi+LxydyfOg7Tm5NsYvH5HzXThqEA9/s4AahIHFIiLAhiDEbH DAlFcGeuy9nUEucjFVYt98cRY7WN/nTDjzrJinxx8MQqdCEmQXL2hoVVLJqrMh7zxjL/ kEAQ== X-Gm-Message-State: AGi0PuZGiQxTpytO6LkmERxMGghQc0SFtjIX1xp9pLTFImEPmzDL6Ge/ tgxYoUMeIfJSg3aUzFli/CKn X-Google-Smtp-Source: APiQypLhnIBbfmNOq1Neg1zhOkmHBM3GQYi9nWZdRTxvgBoMO7qNbn3JkdJL0T/tfKUo09K55XU4mQ== X-Received: by 2002:ac8:4a93:: with SMTP id l19mr7692688qtq.365.1586367942005; Wed, 08 Apr 2020 10:45:42 -0700 (PDT) Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net. [99.10.92.30]) by smtp.gmail.com with ESMTPSA id 145sm19605976qke.126.2020.04.08.10.45.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Apr 2020 10:45:40 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: backup manifests and contemporaneous buildfarm failures To: Tom Lane Cc: Robert Haas , Fabien COELHO , Alvaro Herrera , David Steele , Andres Freund , Noah Misch , Stephen Frost , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , PostgreSQL Hackers , Jeevan Chalke , vignesh C , Thomas Munro References: <20200403205412.GA8279@alvherre.pgsql> <22394.1585951968@sss.pgh.pa.us> <3419.1585965125@sss.pgh.pa.us> <24829.1586234244@sss.pgh.pa.us> Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= mQENBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAG0L0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+iQFY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgBYhBOQ+WEYd/Hy/RGkVpZn6f8tZ /DuBAhkBBQJd1pSYBQkSzqMsAAoJEJn6f8tZ/DuBJmEIAIVFBIC3qGqh+YTPVTkfowwxpHz0 tZSPjZ6GS/5y62kgoZrZOVXw+Rg2ceuMM3a+In/RRjTx4bembgYqRKgzXlDfiNBJeq5ioVuN H1faDKE2lm5a6QkRQ2JU6DKf60fqSJGP5LisCUr1V0wz6EnlO31ArrKtXCNB+yk0KDAS6o6I Ql4pkXpr+vq4iilwJmiJOqTBam0LmQE7ulYCCYU8Z6MkpiSl+dO7QSramcGyxauQRI3a7gcq dpo8Vrv3gFTQDeMYxk7cqZp08pIVH5XR0+LgBz4X84f59rA/VAKlC/r6CyEQk59rvDLxCMyP 2buoj51Z25N3MVghRDGcsU6mT7e5AQ0ETspYWQEIANGc4zQULOxhbqO2dyD51YhqCNRmm9oK Waqf+wmW4tpDe/VVcxAnNizd4LWCHfzpb5cHAtGkOPePMfzWVf6nvdF7d3eglbtf59+zG7O7 llV0xSSoFiieQBsrGvqDInXYX/4mRRXMtyhM353/tixC9RWLs1oofyYmCPPXXY7h9R7en3B8 BoVrRFcdzlIY/NFNhFGW/9dkEiGjgna2Rk6e15kln4ZvFBWUg23p93w/pqXcxY6+k/8TEk+C 4R+M6w7o2PLGOjdZ+kPiUcw5H85zf/yZJwQXzisXaNduwWB6Vads9YC9dj6kPR1c4VGRqAaY L++LAEOqrlvm2TvqQqZRtnEAEQEAAYkBJQQYAQIADwIbDAUCXdaUtAUJEs6jVQAKCRCZ+n/L Wfw7gQi5B/9sHbmRloZNCWWwZGm+O9iG/JGQxS0WWa4GaZqzqSTWOft2/gO0Bgag89r1djq4 PFgSZtzHvKQpqYz/7HkPrWh1jpcS83i/uYY1uyHXUUtpdEmn4buNObEtD0YNaJkGdhASsECq 6akw+u7WJYmAHs/SpR6ok6HqLw7JHDVc2h5dViLfTk0qrgDa7sq/LVMoJje5Ct/Ku3YaWAV6 YSmzoPP5BmPVFqP11OMQkCqurIu9vTLXKFWX623vCmqRDHJ6e5GCDHbH8USU+4wJBfPymZkd cA7NGm/mmWeJiWBFIDyjzYxrjku8ty9TZJVsaRXnS+OFQzXz9Eu2wTpKdHij46uY Message-ID: <7330a7c7-ce5f-9769-39a1-bdb0b32bb4a6@2ndQuadrant.com> Date: Wed, 8 Apr 2020 13:45:39 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------524D116BD8080C28075D26CC" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------524D116BD8080C28075D26CC Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 4/7/20 9:42 AM, Andrew Dunstan wrote: > On Tue, Apr 7, 2020 at 12:37 AM Tom Lane wrote: >> Robert Haas writes: >>> Taking stock of the situation this morning, most of the buildfarm is >>> now green. There are three failures, on eelpout (6 hours ago), >>> fairywren (17 hours ago), and hyrax (3 days, 7 hours ago). >> fairywren has now done this twice in the pg_validatebackupCheck step: >> >> exec failed: Bad address at /home/pgrunner/bf/root/HEAD/pgsql.build/../pgsql/src/test/perl/TestLib.pm line 340. >> at /home/pgrunner/bf/root/HEAD/pgsql.build/../pgsql/src/test/perl/TestLib.pm line 340. >> >> I'm a tad suspicious that it needs another perl2host() >> somewhere, but the log isn't very clear as to where. >> >> More generally, I wonder if we ought to be trying to >> centralize those perl2host() calls instead of sticking >> them into individual test cases. >> >> > > Not sure about that. I'll see if I can run it by hand and get some > more info. What's quite odd is that jacana (a very similar setup) is > passing this happily. > OK, tricky, but here's what I did to get this working on fairywren. First, on Msys2 there is a problem with name mangling. We've had to fix this before by telling it to ignore certain argument prefixes. Second, once that was fixed rmdir was failing on the tablespace. On Windows this is a junction, so unlink is the correct thing to do, I believe, just as it is on Unix where it's a symlink. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --------------524D116BD8080C28075D26CC Content-Type: text/x-patch; charset=UTF-8; name="fix_validate_regression.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix_validate_regression.patch" diff --git a/src/bin/pg_validatebackup/t/003_corruption.pl b/src/bin/pg_validatebackup/t/003_corruption.pl index 7a09d02e6c..fe717dfc73 100644 --- a/src/bin/pg_validatebackup/t/003_corruption.pl +++ b/src/bin/pg_validatebackup/t/003_corruption.pl @@ -16,6 +16,8 @@ $master->start; # Include a user-defined tablespace in the hopes of detecting problems in that # area. my $source_ts_path = TestLib::perl2host(TestLib::tempdir_short()); +my $source_ts_prefix = $source_ts_path; +$source_ts_prefix =~ s!([^A-Z]:/[^/]*)/.*!$1!; $master->safe_psql('postgres', <backup_dir . '/' . $name; my $backup_ts_path = TestLib::perl2host(TestLib::tempdir_short()); + local $ENV{MSYS2_ARG_CONV_EXCL} = $source_ts_prefix; $master->command_ok(['pg_basebackup', '-D', $backup_path, '--no-sync', '-T', "${source_ts_path}=${backup_ts_path}"], "base backup ok"); @@ -177,14 +180,7 @@ sub mutilate_missing_tablespace my ($tsoid) = grep { $_ ne '.' && $_ ne '..' } slurp_dir("$backup_path/pg_tblspc"); my $pathname = "$backup_path/pg_tblspc/$tsoid"; - if ($windows_os) - { - rmdir($pathname) || die "$pathname: $!"; - } - else - { - unlink($pathname) || die "$pathname: $!"; - } + unlink($pathname) || die "$pathname: $!"; return; } --------------524D116BD8080C28075D26CC--