pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: kevent latch paths don't handle postmaster death well
Date: Wed, 14 Oct 2020 23:10:22 +0300
Message-ID: <7d6fb32a-d6d2-0c09-372a-41e992d54dff@iki.fi> (raw)
In-Reply-To: <3624029.1602701929@sss.pgh.pa.us>
References: <3624029.1602701929@sss.pgh.pa.us>

On 14/10/2020 21:58, Tom Lane wrote:
> I noticed that chipmunk failed [1] with a rather interesting log:
> 
> 2020-10-14 08:57:01.661 EEST [27048:6] pg_regress/prepared_xacts LOG:  statement: UPDATE pxtest1 SET foobar = 'bbb' WHERE foobar = 'aaa';
> 2020-10-14 08:57:01.721 EEST [27048:7] pg_regress/prepared_xacts LOG:  statement: SELECT * FROM pxtest1;
> 2020-10-14 08:57:01.823 EEST [27048:8] pg_regress/prepared_xacts FATAL:  postmaster exited during a parallel transaction
> TRAP: FailedAssertion("entry->trans == NULL", File: "pgstat.c", Line: 909, PID: 27048)
> 2020-10-14 08:57:01.861 EEST [27051:1] ERROR:  could not attach to dynamic shared area
> 2020-10-14 08:57:01.861 EEST [27051:2] STATEMENT:  SELECT * FROM pxtest1;
> 
> I do not know what happened to the postmaster, but seeing that chipmunk
> is a very small machine running a pretty old Linux kernel, it's plausible
> to guess that the OOM killer decided to pick on the postmaster.  (I wonder
> whether Heikki has taken any steps to prevent that on that machine.)

For the record, it was not the OOM killer. It was the buildfarm cron job 
that did it:

Oct 14 08:57:01 raspberrypi /USR/SBIN/CRON[27050]: (pgbfarm) CMD 
(killall -q -9 postgres; cd /home/pgbfarm/build-farm-client/ && 
./run_branches.pl --run-all)

Apparently building and testing all the branches is now taking slightly 
more than 24 h on that system, so the next day's cron job kills the 
previous tests. I'm going to change the cron schedule so that it runs 
only every other day.

- Heikki





view thread (14+ messages)  latest in thread

Message-ID: <7d6fb32a-d6d2-0c09-372a-41e992d54dff@iki.fi>
Permalink:  ../7d6fb32a-d6d2-0c09-372a-41e992d54dff@iki.fi/
Also on:    postgresql.org/message-id/7d6fb32a-d6d2-0c09-372a-41e992d54dff@iki.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: hlinnaka@iki.fi, tgl@sss.pgh.pa.us, thomas.munro@gmail.com
  Subject: Re: kevent latch paths don't handle postmaster death well
  In-Reply-To: <7d6fb32a-d6d2-0c09-372a-41e992d54dff@iki.fi>
  References: <3624029.1602701929@sss.pgh.pa.us> <7d6fb32a-d6d2-0c09-372a-41e992d54dff@iki.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox