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 1fuzJM-0007wZ-Uy for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Aug 2018 12:11:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fuzJL-0003zK-AG for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Aug 2018 12:10:59 +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 1fuzJL-0003zD-15 for pgsql-bugs@lists.postgresql.org; Wed, 29 Aug 2018 12:10:59 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuzJI-0003Tf-Io for pgsql-bugs@lists.postgresql.org; Wed, 29 Aug 2018 12:10:57 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 100F34A8; Wed, 29 Aug 2018 08:10:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 29 Aug 2018 08:10:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc: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=P4XbYHx9VSg0zLI+kZ7FjPka6F1G77Uk4ijSn4Fgyx0=; b=LakQ4GVa iS42djagYFnEVnkJhtr1tBJyQpGa1QzmrUoKD/9b73gyvvRRsyOGiWX2l4p17S6L un06GMnFTjWop+BY0di7nJ10n5PWmb0UDYTiVmYgH1a96tMHawKbNrkzkyC17wnR Bbaq4td06WiVBk2nFP7Vu3X2t4etcUb3w7MNxkf5Yo2dC4yf6UaJEOhwLXQr4K7z z0su1IwtTAaWMFXk2/UWsJjZFtNWWOMRX+GA6pXuwJmQ1sQNd8p5e5NnNuG2bI7V QVg/lGT1yHofEkeYqeuBO+yS9z+4OP7dFsDrGQu2Rk1k5khBYoZoTaNXBbuliFQV ujRxEvYikuDjIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=P4XbYHx9VSg0zLI+kZ7FjPka6F1G7 7Uk4ijSn4Fgyx0=; b=kSF30Y7ntBgzqkeVBq818Q9/5MgcCYciQTkApi8RSfIFa 99qplLGoEMHdVnd/gJ6w3WisR3S+z+huttfhaQXVplHxqW7aCytPXLEEIr3nH0Z+ 7+Fd+1E3nRH4QHH9gg64dFQqcu0cmJbPWiHa0oJ88iTJ4m5N8pMcBA4zKcvj1jc3 vCLIuUwJL3e5YTtoB65vcJuwRyqk6Dca7LM0OXN84lLqD6cJAldwWWuewlJ9ilWK AKQufNJktxEw44nXUlqBT2jcV5FxQQfr6ykGTK25VSFnOLGz+DePf+uAusTZyhoR d3opyfUsgHIfvfSEOj/g7tERulWTBmaAJhHWfpm0w== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (unknown [66.201.48.83]) by mail.messagingengine.com (Postfix) with ESMTPA id 1879E1028D; Wed, 29 Aug 2018 08:10:53 -0400 (EDT) Date: Wed, 29 Aug 2018 05:10:51 -0700 From: Michael Paquier To: Alexander Kukushkin Cc: Alvaro Herrera , Dmitry Dolgov <9erthalion6@gmail.com>, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15346: Replica fails to start after the crash Message-ID: <20180829121051.GC5903@paquier.xyz> References: <20180822175034.lnvwk5js32k6mjyz@alvherre.pgsql> <20180823041420.GA1158@paquier.xyz> <20180829061723.GA5903@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KN5l+BnMqAQyZLvT" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --KN5l+BnMqAQyZLvT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 29, 2018 at 08:59:16AM +0200, Alexander Kukushkin wrote: > Why the block 72478 of index relfile doesn't meet our expectations > (contains so few tuples)? > The answer to this question is in the page header. LSN, written in the > indexpage header is AB3/56BF3B68. > That has only one meaning, while the postgres was working before the > crash it managed to apply WAL stream til at least AB3/56BF3B68, what > is far ahead of "Minimum recovery ending location: AB3/4A1B3118". Yeah, that's the pinpoint. Do you know by chance what was the content of the control file for each standby you have upgraded to 9.6.10 before starting them with the new binaries? You mentioned a cluster of three nodes, so I guess that you have two standbys, and that one of them did not see the symptoms discussed here, while the other saw them. Do you still have the logs of the recovery just after starting the other standby with 9.4.10 which did not see the symptom? All your standbys are using the background worker which would cause the btree deletion code to be scanned, right? I am trying to work on a reproducer with a bgworker starting once recovery has been reached, without success yet. Does your cluster generate some XLOG_PARAMETER_CHANGE records? In some cases, 9.4.8 could have updated minRecoveryPoint to go backward, which is something that 8d68ee6 has been working on addressing. Did you also try to use local WAL segments up where AB3/56BF3B68 is applied, and also have a restore_command so as extra WAL segment fetches =66rom the archive would happen? -- Michael --KN5l+BnMqAQyZLvT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAluGjUsACgkQnvQgOdby QH3TTw//VTgFVKAsLbXEUGXRQRGF+HwFtkN/SlLGAdhTVEA5YdI2JPLY/UqN/XVn 38zxfqrlfJ+ho3WsLXUdHIOOKCWOAk+pZ6riSJxd5Pc+0RiHfIR5nazrcwq2gqwo glI/D1bfMCgLEsA8KS+Afst5VucfsRP3ZAYCJRZ8BWta0IykIiDFGKHikLURRp8S 2p0iv72W12bqBVmyXmhygqBB3LhS+pftdnXC/yeD4qguECIZGGnds0siyxOavVOu Sl/RhpySCkV6cjyN7rFJBa6vE26p2ABAlg8f9Io9YYAGh7eBLugvsy5+4nmQ8xOg uU96zXBcEia1tF3bsZrULnDQJN6nu+v6LwtrHFCHyZSL26dDT0vM+9IBW2Mg55Eq I+ioz+SOeL0Q8cUxDQKSvi0aFx9cbhauziawI2eBYHDqXM2jPqtbdAxIlxY8pdCY K2yEnfBAHDbswthavjQUuq/DRKmaUJugqJrD59HFDMvGsFN+nHRU46nxAGCFWxtH +aEHEr8mvIw9pcE7e8toRbPt1SHRMADtlLInTjyrQcy68SclU2QrIJMGrw39ad5e xZhT/aiJWHK2sY6xytb2BJrE7Vy5VFtKWpBOlUQs+rAy6cpjRkD+35Q8RTCGEBdW /MnW2Suij+Qsu06FkHFQfmr3PygoJdl6597+ru/kdkHyEgz+xSc= =9aA/ -----END PGP SIGNATURE----- --KN5l+BnMqAQyZLvT--