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 1jLK9O-0004j5-A0 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2020 05:18:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLK9N-00088W-3l for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2020 05:18:21 +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 1jLK9M-00085G-Sx for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2020 05:18:20 +0000 Received: from courriel-2.mines-paristech.fr ([77.158.173.19] helo=antispam-1.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLK9J-0004JM-Hd for pgsql-hackers@postgresql.org; Mon, 06 Apr 2020 05:18:19 +0000 Received: from smtp-4.mines-paristech.fr (smtp-4.ensmp.fr [77.158.173.143]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id 179EE56668; Mon, 6 Apr 2020 07:18:12 +0200 (CEST) Received: from pseudo (108.237.219.88.rev.sfr.net [88.219.237.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-4.mines-paristech.fr (Postfix) with ESMTPSA id F101E2C01F4; Mon, 6 Apr 2020 07:18:10 +0200 (CEST) Date: Mon, 6 Apr 2020 07:18:10 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Tom Lane cc: Andrew Dunstan , =?ISO-8859-15?Q?Mikael_Kjellstr=F6m?= , Robert Haas , 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 Subject: Re: backup manifests and contemporaneous buildfarm failures In-Reply-To: <4026.1586117546@sss.pgh.pa.us> Message-ID: References: <20200403205412.GA8279@alvherre.pgsql> <22394.1585951968@sss.pgh.pa.us> <3419.1585965125@sss.pgh.pa.us> <10b8121c-faa1-66a7-4280-319b9be5cc2d@mksoft.nu> <95e52766-4e00-1bc7-8710-8b681760bdf4@2ndQuadrant.com> <4026.1586117546@sss.pgh.pa.us> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedruddvgdelhecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffujgfkfhgfgggtsehttdertddtredvnecuhfhrohhmpefhrggsihgvnhcuvefqgffnjffquceotghovghlhhhosegtrhhirdgvnhhsmhhprdhfrheqnecukfhppeekkedrvdduledrvdefjedruddtkeenucfrrghrrghmpehmohguvgepshhmthhpohhuth X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, >> Do I need to precede those with some recursive chmod commands? Perhaps >> the client should refuse to run if there is still something left after >> these. > > I think the latter would be a very good idea, just so that this sort of > failure is less obscure. Not sure about whether a recursive chmod is > really going to be worth the cycles. (On the other hand, the normal > case should be that there's nothing there anyway, so maybe it's not > going to be costly.) Could it be a two-stage process to minimize cost but still be resilient? rmtree if (-d $DIR) { emit warning chmodtree rmtree again if (-d $DIR) emit error } -- Fabien.