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 1oxemZ-0001kk-5X for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Nov 2022 01:42:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oxemW-0000AM-Sj for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Nov 2022 01:42:32 +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 1oxemW-0000AC-JY for pgsql-hackers@lists.postgresql.org; Wed, 23 Nov 2022 01:42:32 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oxemT-0007K5-Jq for pgsql-hackers@postgresql.org; Wed, 23 Nov 2022 01:42:31 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id E22973200954 for ; Tue, 22 Nov 2022 20:42:26 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 22 Nov 2022 20:42:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1669167746; x=1669254146; bh=MGCOeFbqcRRQGSxCcsGkPI6/MH8cZY51pUr 3iz9+P2o=; b=GNighO9/amDO3jQuuQjclO60ahNvNmWLdR+L0oG8a3rWs+P2l6c sAsrSKWUIAbaUXj9+1Ikj6fOUHN4ynYtj3oCLTnS4rDCQr6esDERxHLeIpUP6oyc FFY+BIpKaki4osi6TqZx7zXxrKddYfxz0sl6XUo+8LxrjQp52fNHd5k0EOjyH3/p gQR5RndG/5Os5vlgeL8HR4kz1zd2kcChBZ7mhDrTa2Dm0sMSzNwVsHj8fpp7kUbt AxXYAbQo6pOGqWtNMcMlR2D0T6ZiFYZXfKEyZ5RzlKgn9SfGKwSDo63hRfm9Ztsp L9Sqs60PdErRqO2RY0LqoWxQtXkmTqvw0yw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1669167746; x= 1669254146; bh=MGCOeFbqcRRQGSxCcsGkPI6/MH8cZY51pUr3iz9+P2o=; b=u uvUa9jia01LxWAN+ghcrlu+60jQqD/joGF3bAidFH8ua5SGyEhzKj9CCX3q5fdjQ paf6ptvtosezDGXbgvaaZNpwhQErdnUVaTJqqyTVzcQfYB69fSrt21L3n1jzcmBI HyY9MT9Ky34Q+a8oWuVro0Jt6Ez0w3MuQaao3T+WAP+zfxqfjC/Hj7dzmI/fwVvC GeKJSjG9CCx4IolQDOJcSCPaLLADTFvyfDWSkJC+svARYo3eAKo96rngbZvp5854 b1sPoj0UVBmNCL2HLcUEOzE00iAefWEEJFwu5+YELaHe6nTOsbtbOpFCcQ5SjnAI wlxN/qJZE/56k3SRM/PBQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedriedtgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehttdertddttd dvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgr iigvlhdruggvqeenucggtffrrghtthgvrhhnpeeugfevudfhledvfeejudegkefhhfelue ffveehjefgjeegkeeviedtjeeutedujeenucffohhmrghinhepphhgshhqlhdrsghuihhl ugdpthgvshhtlhhisgdrphhmpdhpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghr rgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 22 Nov 2022 20:42:26 -0500 (EST) Date: Tue, 22 Nov 2022 17:42:24 -0800 From: Andres Freund To: pgsql-hackers@postgresql.org Subject: odd buildfarm failure - "pg_ctl: control file appears to be corrupt" Message-ID: <20221123014224.xisi44byq3cf5psi@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, My buildfarm animal grassquit just showed an odd failure [1] in REL_11_STABLE: ok 10 - standby is in recovery # Running: pg_ctl -D /mnt/resource/bf/build/grassquit/REL_11_STABLE/pgsql.build/src/bin/pg_ctl/tmp_check/t_003_promote_standby2_data/pgdata promote waiting for server to promote....pg_ctl: control file appears to be corrupt not ok 11 - pg_ctl promote of standby runs # Failed test 'pg_ctl promote of standby runs' # at /mnt/resource/bf/build/grassquit/REL_11_STABLE/pgsql.build/../pgsql/src/test/perl/TestLib.pm line 474. I didn't find other references to this kind of failure. Nor has the error re-occurred on grassquit. I don't immediately see a way for this message to be hit that's not indicating a bug somewhere. We should be updating the control file in an atomic way and read it in an atomic way. The failure has to be happening in wait_for_postmaster_promote(), because the standby2 is actually successfully promoted. Greetings, Andres Freund [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=grassquit&dt=2022-11-22%2016%3A33%3A57