Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1fiz-00033T-8A for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 21:04:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d1fiy-0005wL-RM for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 21:04:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d1fix-0005u6-ST for pgsql-hackers@postgresql.org; Fri, 21 Apr 2017 21:04:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d1fiu-0004JC-92 for pgsql-hackers@postgresql.org; Fri, 21 Apr 2017 21:04:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3LL48BL027896; Fri, 21 Apr 2017 17:04:08 -0400 From: Tom Lane To: Alvaro Herrera cc: Simon Riggs , pgsql-hackers@postgresql.org, Thomas Munro Subject: Re: [COMMITTERS] pgsql: Replication lag tracking for walsenders In-reply-to: <20170421190629.3srqyohjocgdvhhr@alvherre.pgsql> References: <20170421190629.3srqyohjocgdvhhr@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 21 Apr 2017 16:06:29 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27894.1492808648.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 21 Apr 2017 17:04:08 -0400 Message-ID: <27895.1492808648@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Alvaro Herrera writes: > Simon Riggs wrote: >> Replication lag tracking for walsenders >>=20 >> Adds write_lag, flush_lag and replay_lag cols to pg_stat_replication. > Did anyone notice that this seems to be causing buildfarm member 'tern' > to fail the recovery check? See here: > https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dtern&dt= =3D2017-04-21%2012%3A48%3A09&stg=3Drecovery-check > which has > TRAP: FailedAssertion("!(lsn >=3D prev.lsn)", File: "walsender.c", Line: = 3331) > Line 3331 was added by this commit. Note that while that commit was some time back, tern has only just started running recovery-check, following its update to the latest buildfarm script. It looks like it's run that test four times and failed twice, so far. So, not 100% reproducible, but there's something rotten there. Timing-dependent, maybe? Some excavation in the buildfarm database says that the coverage for the recovery-check test has been mighty darn thin up until just recently. These are all the reports we have: pgbfprod=3D> select sysname, min(snapshot) as oldest, count(*) from build_s= tatus_log where log_stage =3D 'recovery-check.log' group by 1 order by 2; sysname | oldest | count=20 ----------+---------------------+------- hamster | 2016-03-01 02:34:26 | 182 crake | 2017-04-09 01:58:15 | 80 nightjar | 2017-04-11 15:54:34 | 52 longfin | 2017-04-19 16:29:39 | 9 hornet | 2017-04-20 14:12:08 | 4 mandrill | 2017-04-20 14:14:08 | 4 sungazer | 2017-04-20 14:16:08 | 4 tern | 2017-04-20 14:18:08 | 4 prion | 2017-04-20 14:23:05 | 8 jacana | 2017-04-20 15:00:17 | 3 (10 rows) So, other than hamster which is certainly going to have its own spin on the timing question, we have next to no track record for this test. I wouldn't bet that this issue is unique to tern; more likely, that's just the first critter to show an intermittent issue. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers