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 1pMxo3-0002Ok-BE for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2023 21:04:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pMxo2-0003rl-77 for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2023 21:04:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMxo0-0003rP-5O for pgsql-hackers@lists.postgresql.org; Tue, 31 Jan 2023 21:04:41 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMxnw-0002Hp-Gk for pgsql-hackers@lists.postgresql.org; Tue, 31 Jan 2023 21:04:38 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 4E6313200392; Tue, 31 Jan 2023 16:04:33 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 31 Jan 2023 16:04:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1675199072; x= 1675285472; bh=EupxKXjfgbJPRoXWSW8OMIbMQbrT78zCwEI4B6zcOzM=; b=w TkahgPvl19PclJjlTwFmA6pi5Y6tSCxa90BYQ4CzGqo99PBWkdwcZEQ5cyMjPszm RysX6A/HFvY/5AZjpUH9+9kGNV2FLfVciGQar/4FVoSNg15ZxIT8BgRM5YoCt8Pc SNjxYbP25cGxosV1Otz7kUuScEyXsE0posfYmIgzgH8cMa3tg3Zz6qc1AKiTjK8y KKDGHALHDBSDk+izUM8VRm2FeHfEhVaTCp1/7aiA4v8On0zVppdDOm5cv+W0iK6g LVkOB/IwKXC6Cryb9OO2QAgOaKQsYk7lrVddO9+jrKLDWvX9q90drHc/FVMiZJkO OI8Vv6sVOmZbRyaTwo00Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1675199072; x= 1675285472; bh=EupxKXjfgbJPRoXWSW8OMIbMQbrT78zCwEI4B6zcOzM=; b=o ww3sOFrEyZt0UfLGVNvqMKBSOE/ecKHvzEifPp9OH0ENf+trx6vjZN8i7cy8GF1d /8f5TlRZf0TtVxl/NRZE7YKNsftf5FGjW8L7q3VRoVYufsOY+hd1XPIVkrQYbtyE P+Eh9VB0YM0IOtelOmkmXnPe8wJoVkbcsGQZM5yMKq+NMUcr6y6nHOgkULadNlEV l86pTo6QWXUcdCVBVugS++YJlQ4aXczCOC1+f9RIbaP+vGT8X90t3iFGt+f8TJWr 9IWJD+Hw+9F0gdAVvQFoIGnMOfGnEazdUMjqUKekUaLzgVas/KtXvwCu7is+kpvE NlPnaO3J6UKvUVHioGYJA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefgedgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomheptehn ughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecugg ftrfgrthhtvghrnhepvdfhueefffffkedthfethffhvdeuudehieehieefudduffevudeg tdekhedvgeeknecuffhomhgrihhnpegtihhrrhhushdqtghirdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgr rhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 Jan 2023 16:04:31 -0500 (EST) Date: Tue, 31 Jan 2023 13:04:24 -0800 From: Andres Freund To: Thomas Munro , Justin Pryzby CC: Michael Paquier , pgsql-hackers@lists.postgresql.org, Nazir Bilal Yavuz Subject: Re: pg_upgrade test failure User-Agent: K-9 Mail for Android In-Reply-To: References: <20221018043144.GF7745@telsasoft.com> <20221018162908.cb3n7tahtekypbkf@awork3.anarazel.de> <20221206181533.pmcz75zbjgvnnzum@awork3.anarazel.de> <20230131172806.GM22427@telsasoft.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi,=20 On January 31, 2023 12:54:42 PM PST, Thomas Munro wrote: >On Wed, Feb 1, 2023 at 6:28 AM Justin Pryzby wro= te: >> > I pushed the rmtree() change=2E Let's see if that helps, or tells us >> > something new=2E >> >> I found a few failures since then: >> >> https://api=2Ecirrus-ci=2Ecom/v1/artifact/task/6696942420361216/testrun= /build/testrun/pg_upgrade/002_pg_upgrade/log/regress_log_002_pg_upgrade >> >> pg_upgrade: warning: could not remove directory "C:/cirrus/build/testru= n/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata/pg_u= pgrade_output=2Ed/20230131T134931=2E720/log": Directory not empty >> pg_upgrade: warning: could not remove directory "C:/cirrus/build/testru= n/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata/pg_u= pgrade_output=2Ed/20230131T134931=2E720": Directory not empty > >So no change: we didn't see "could not unlink file =2E=2E=2E"=2E So I th= ink >that means that it was rmtree() that unlinked the file for the *first* >time, but someone else has it open=2E > >Even though Windows is at this point eroding my love of computers and >making me consider a new career in, I dunno, carrot farming or >something, I have one more idea=2E Check out this kluge in >src/bin/pg_upgrade/exec=2Ec: > > /* > * "pg_ctl -w stop" might have reported that the server has stopp= ed > * because the postmaster=2Epid file has been removed, but "pg_ct= l -w > * start" might still be in the process of closing and might stil= l be > * holding its stdout and -l log file descriptors open=2E Theref= ore, > * try to open the log file a few more times=2E > */ > >I'm not sure about anything, but if that's what's happening here, then >maybe the attached would help=2E In short, it would make the previous >theory true (the idea of a second unlink() saving the day)=2E Maybe we should just handle it by sleeping and retrying, if on windows? Sa= d to even propose=2E=2E=2E=20 --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E