From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-committers@postgresql.org
Cc: pgbuildfarm@jdrake.com
Subject: Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY
Date: Fri, 23 Feb 2018 20:59:00 -0500
Message-ID: <28821.1519437540@sss.pgh.pa.us> (raw)
In-Reply-To: <23413.1515008794@sss.pgh.pa.us>
References: <20180103193728.ysqpcp2xjnqpiep7@alvherre.pgsql>
<23413.1515008794@sss.pgh.pa.us>
So we're still not out of the woods with that CREATE INDEX CONCURRENTLY
deadlock test. Buildfarm member okapi has failed most (not all) of its
runs since that patch went in, but only in the 9.4 branch. The failures
look like
inline patch 1: /home/data/buildfarm/root.x86_64/REL9_4_STABLE/pgsql.build/src/test/isolation/results/multiple-cic.out (+1/-0 lines) download inline-1.patch*** /home/data/buildfarm/root.x86_64/REL9_4_STABLE/pgsql.build/src/test/isolation/expected/multiple-cic.out Thu Feb 22 02:35:05 2018
--- /home/data/buildfarm/root.x86_64/REL9_4_STABLE/pgsql.build/src/test/isolation/results/multiple-cic.out Thu Feb 22 02:44:48 2018
***************
*** 14,19 ****
--- 14,20 ----
WHERE unlck();
step s1i: <... completed>
+ error in steps s2i s1i: ERROR: deadlock detected
s1
as though the bug hadn't been fixed at all.
I have no idea what to make of this. I'd easily believe a 9.4-only bug,
but why is okapi the only critter showing it? It doesn't seem to be a
particularly unusual platform or build configuration.
I thought maybe it's a timing issue, but fooling about with altering
the timing by injecting sleeps hasn't allowed me to reproduce it here.
I do notice that okapi is running a not-very-new icc version with -O3,
opening the possibility that there's a compiler bug or at least an
undesirable optimization going on. It might be interesting to find out
if the failure is still reproducible at lower -O levels.
regards, tom lane
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, andres@anarazel.de, jeff.janes@gmail.com, pgbuildfarm@jdrake.com
Subject: Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY
In-Reply-To: <28821.1519437540@sss.pgh.pa.us>
References: <20180103193728.ysqpcp2xjnqpiep7@alvherre.pgsql> <23413.1515008794@sss.pgh.pa.us> <28821.1519437540@sss.pgh.pa.us>
* 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