Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqGo2-0003oG-3S for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Aug 2018 11:51:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqGnz-0002Tz-Ll for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Aug 2018 11:51:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqGny-0002TZ-JB for pgsql-bugs@lists.postgresql.org; Thu, 16 Aug 2018 11:51:07 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqGnt-0002q4-Rs for pgsql-bugs@lists.postgresql.org; Thu, 16 Aug 2018 11:51:05 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id ED41821945; Thu, 16 Aug 2018 07:51:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 16 Aug 2018 07:51:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=CUEWyXVQFs9FLlW8AAYTQnaHaOQmUHhV5UL7VEaToBE=; b=Ouwkt94e B/Ng8Z4cgn7qf/m9/x8Vre42Rg7PcTqr43lmMEV8umN4BPJ2rKahjrEdHgiqqHPS Rk9K4hCl2jeq6hMvGxrKpxcunt5vQtJexhrmKsSJ120o0wKuydrkNZLmTgxEb2o5 pX4GgJqo0qPe8xoD/0udCUy3/V82MejnZT3A0qCyYlDI16/arFfXzKyrP1s6fWyN kfTytI3ty4SXXtzc2WU9Rz0AZ1IfcEyy/hTPaIhZzkhIzyJTMW5ZNQG2viU1P0Cc L+P/ublT+vPe6F00gmG4QdEFasJeHxc3Z70lbH8jwtlCV2/U9G9s5Haz+kAEz+oD 4Pg3Cg+6t3SpwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=CUEWyXVQFs9FLlW8AAYTQnaHaOQmU HhV5UL7VEaToBE=; b=KnngOOGZ74/3hTKSbUFKx8hlRuk+Zmh5Yrf+gjYL4D1A/ jgJZRv8LQt+grwN8dcfdFan7MqQxv9ZWQcXKoz3T5E9RCyCUbCz6Ymmyqg4UGG80 onqc7CiSY+5IdkCwo8FcDKo4e6MsrhG51FcU1U5a1sHoc1kIF32LKnN81MUnN4aC NV6KKsyBuS8cWP3QHjEaYa3l0npFibZbaBZKRJPjr0xYMVgRE31OzP4gwhjxbSw5 a8b6fYTjTy7p74hm8a7MOrgKmD0LTwrtafx30HQLRprHxi/mutF+Ag3krdR63gVo 2dyPzN9ZPLAGjXC0923SI7xA13/phINIqe4XCb08A== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id EBA2110255; Thu, 16 Aug 2018 07:50:58 -0400 (EDT) Date: Thu, 16 Aug 2018 20:50:55 +0900 From: Michael Paquier To: spam_from_pgsql_lists@chezphil.org, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15331: Please check if recovery.conf can be renamed Message-ID: <20180816115055.GN3681@paquier.xyz> References: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0aF+6pWUK5w8WdCh" Content-Disposition: inline In-Reply-To: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0aF+6pWUK5w8WdCh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Aug 16, 2018 at 11:30:09AM +0000, PG Bug reporting form wrote: > This means that promotion fails, and for me even after fixing the > permissions the system was in an odd state that took some work to fix. > Failover is hard to get right; emitting a warning earlier in this case would > mean one less thing to go wrong. I think that you would be interested in this recent commit (fixed as of the last round of minor releases): commit: cbc55da556bbcb649e059804009c38100ee98884 committer: Michael Paquier date: Mon, 9 Jul 2018 10:22:34 +0900 Rework order of end-of-recovery actions to delay timeline history write And this thread: https://postgr.es/m/CABUevEz09XY2EevA2dLjPCY-C5UO4Hq=XxmXLmF6ipNFecbShQ@mail.gmail.com To give you a summary, once recovery finished and before recovery.conf was renamed, some on-disk actions happened, which could put the cluster in a weird state, perhaps similarly to what you saw. -- Michael --0aF+6pWUK5w8WdCh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlt1ZR8ACgkQnvQgOdby QH18Fg/9FVYw0Xu9OqaZgjccHD3I1sAQVp0sFgsbV+FuYyFm27b1FUVBD4XwYnXD txXNMifRFpFpFgAwapRlI4LB2ZJExCFuN2piCb8c8skT+KwENqtObYc879AUVhaV w9nWf5uOG3LtWlgTtgpMdpQs8dEJYV3/1TKvXDCX9FfZdovvGC6jTSep34Y6JIz7 lRNaE+1cLUsnqx9vbNbNRPN2qU0hclinE/UpjLwkJ4a4nKnZdFijMlJbsz13aizy h2pgCnB1/2h+4267prFQklxqChIxAJqZsAInkDG+EFWU2gXbgA4/9efJGJ9ajrOQ SDHHQb5eD0A/TWCVAwptIqya8BI1R25VC57Pud3F9fvpDpVbrHOwgY58b9CWg9Wt MOUn9XxIFZ+2FMVJzKFTDkHBnXX1jLAu9U3agv4od/I3zHsoEWGYC7sBHl8zwGBa kxNy0C9sS/NDyytrgtMB9wXct0+AAGDgGMbKLGiNfanOYukTh9tSXJGo2mzHK2yS kAiIveOLEWdKH0USzlxKRItBI5agMonTaVLtVt3O2XLLKTkn12oHC2H5SVCqjefF S76jxFQs14KjU5NAXkgLa3P0chLRsbZ0+w9YMvT/6Y/1pgqnUkHogtYVTchdztws 7HquA8gmw9PExO4A3A3EbIp7rD/pluu50IYKoqrIDh574jTGeIo= =6OOT -----END PGP SIGNATURE----- --0aF+6pWUK5w8WdCh--