pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Still further tweaking of deadlock isolation tests.
Date: Fri, 12 Feb 2016 19:20:06 +0000
Message-ID: <E1aUJGA-00006n-O7@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Still further tweaking of deadlock isolation tests.

It turns out that there is a second race condition in the new deadlock-hard
test: once the deadlock detector fires, it's uncertain whether step s7a8 or
step s8a1 will report first, because killing s8's transaction unblocks s7.
So far, s7 has only been seen to report first in CLOBBER_CACHE_ALWAYS
builds, but it's pretty reproducible there, and in theory it should
sometimes occur in normal builds too.  If s7 were a bit slower than usual,
that could also break the test, since the existing expected-file assumes
that we'll see s7a8 report the first time we check it after s8a1 completes.
To fix, add a post-lock delay to s7a8.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d03130d378b5fb071d231a7822784ad87268583a

Modified Files
--------------
src/test/isolation/expected/deadlock-hard.out | 9 ++++++---
src/test/isolation/specs/deadlock-hard.spec   | 6 ++++--
2 files changed, 10 insertions(+), 5 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1aUJGA-00006n-O7@gemulon.postgresql.org>
Permalink:  ../E1aUJGA-00006n-O7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aUJGA-00006n-O7@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Still further tweaking of deadlock isolation tests.
  In-Reply-To: <E1aUJGA-00006n-O7@gemulon.postgresql.org>
  References: <E1aUJGA-00006n-O7@gemulon.postgresql.org>

* 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