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 1le12N-0001Tx-5y for pgsql-hackers@arkaria.postgresql.org; Tue, 04 May 2021 19:48:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1le12L-00087D-7o for pgsql-hackers@arkaria.postgresql.org; Tue, 04 May 2021 19:48:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1le12L-000874-0b for pgsql-hackers@lists.postgresql.org; Tue, 04 May 2021 19:48:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1le12G-0006Cd-U8 for pgsql-hackers@postgresql.org; Tue, 04 May 2021 19:48:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 144Jlf0J3967045; Tue, 4 May 2021 15:47:41 -0400 From: Tom Lane To: Thomas Munro cc: Tomas Vondra , Andres Freund , Stephen Frost , Alvaro Herrera , David Steele , Dmitry Dolgov <9erthalion6@gmail.com>, Jakub Wartak , pgsql-hackers Subject: Re: WIP: WAL prefetch (another approach) In-reply-to: <3895573.1620135972@sss.pgh.pa.us> References: <8dd2dcc2-0b6b-a4ab-c1b3-032c0a5ab1c3@enterprisedb.com> <773932.1619022622@sss.pgh.pa.us> <892344.1619054465@sss.pgh.pa.us> <20210428163245.ff67pb2ii5irr5zr@alap3.anarazel.de> <2808045.1619628335@sss.pgh.pa.us> <3502526.1619925367@sss.pgh.pa.us> <3895573.1620135972@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 04 May 2021 09:46:12 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3967043.1620157661.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 04 May 2021 15:47:41 -0400 Message-ID: <3967044.1620157661@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I suppose that if we're unable to reproduce it on at least one other box= , > we have to write it off as hardware flakiness. BTW, that conclusion shouldn't distract us from the very real bug that Andres identified. I was just scraping the buildfarm logs concerning recent failures, and I found several recent cases that match the symptom he reported: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dchipmunk&dt=3D20= 21-04-23%2022%3A27%3A41 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dhornet&dt=3D2021= -04-21%2005%3A15%3A24 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dmandrill&dt=3D20= 21-04-20%2002%3A03%3A08 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dtern&dt=3D2021-0= 5-04%2004%3A07%3A41 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dwrasse&dt=3D2021= -04-20%2021%3A08%3A59 They all show the standby in recovery/019_replslot_limit.pl failing with symptoms like 2021-05-04 07:42:00.968 UTC [24707406:1] LOG: database system was shut do= wn in recovery at 2021-05-04 07:41:39 UTC 2021-05-04 07:42:00.968 UTC [24707406:2] LOG: entering standby mode 2021-05-04 07:42:01.050 UTC [24707406:3] LOG: redo starts at 0/1C000D8 2021-05-04 07:42:01.079 UTC [24707406:4] LOG: consistent recovery state r= eached at 0/1D00000 2021-05-04 07:42:01.079 UTC [24707406:5] FATAL: invalid memory alloc requ= est size 1476397045 2021-05-04 07:42:01.080 UTC [13238274:3] LOG: database system is ready to= accept read only connections 2021-05-04 07:42:01.082 UTC [13238274:4] LOG: startup process (PID 247074= 06) exited with exit code 1 (BTW, the behavior seen here where the failure occurs *immediately* after reporting "consistent recovery state reached" is seen in the other reports as well, including Andres' version. I wonder if that means anything.) regards, tom lane