pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.
Date: Fri, 12 Feb 2016 20:59:32 -0500
Message-ID: <26400.1455328772@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+Tgmoa_1NV8+DJB6qLF-8Po+RqvE8F4YEeuTXH9MM5OBf9juQ@mail.gmail.com>
References: <E1aTrXw-0005kd-Nl@gemulon.postgresql.org>
	<21023.1455200996@sss.pgh.pa.us>
	<CA+TgmoYh2UycJAaW+UONuXJhThyRD_Eq_1xDbivROLLYaSfb2Q@mail.gmail.com>
	<CA+TgmoYrakoJzjNm_QpAZ4wktTG=MbPVJZiKETGeeXWaQ1N=1Q@mail.gmail.com>
	<14581.1455205343@sss.pgh.pa.us>
	<20201.1455210279@sss.pgh.pa.us>
	<24444.1455251654@sss.pgh.pa.us>
	<CA+TgmoaV7Tjr4D2+JsW+bBSmnGo4GqgxqKLJ3D8CMr7=Ayhx0Q@mail.gmail.com>
	<1427.1455301014@sss.pgh.pa.us>
	<17358.1455314354@sss.pgh.pa.us>
	<CA+Tgmoa_1NV8+DJB6qLF-8Po+RqvE8F4YEeuTXH9MM5OBf9juQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Feb 12, 2016 at 4:59 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The fundamental problem I fear is that isolationtester is designed around
>> the assumption that only its own actions (query issuances) change the
>> state of the database.  Trying to use it to test deadlock detection is
>> problematic because deadlock-breaking changes the DB state asynchronously.

> Maybe we should introduce a way to declare whether a step is expected
> to wait or not.  I thought about doing that, and the only reason I
> didn't is because I couldn't figure out a reasonable syntax.  But, in
> many respects, that would actually be better than the current system
> of having isolationtester try to figure it out itself.

Meh.  I'm not sure that would actually help anything.  The problem is not
so much with figuring out whether a step blocks, as knowing when it's
expected to complete.  And for sure I don't want to annotate the spec
files to the point of saying "this action should cause these other steps
to complete".

Actually ... the thing we've been fighting over the past couple days is
having to make step completion orders deterministic when in principle
they aren't and don't need to be.  Maybe the solution is something like
the core tests' variant expected files, ugly though those are.

			regards, tom lane


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



view thread (30+ messages)  latest in thread

Message-ID: <26400.1455328772@sss.pgh.pa.us>
Permalink:  ../26400.1455328772@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26400.1455328772@sss.pgh.pa.us

 · 

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, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.
  In-Reply-To: <26400.1455328772@sss.pgh.pa.us>
  References: <E1aTrXw-0005kd-Nl@gemulon.postgresql.org> <21023.1455200996@sss.pgh.pa.us> <CA+TgmoYh2UycJAaW+UONuXJhThyRD_Eq_1xDbivROLLYaSfb2Q@mail.gmail.com> <CA+TgmoYrakoJzjNm_QpAZ4wktTG=MbPVJZiKETGeeXWaQ1N=1Q@mail.gmail.com> <14581.1455205343@sss.pgh.pa.us> <20201.1455210279@sss.pgh.pa.us> <24444.1455251654@sss.pgh.pa.us> <CA+TgmoaV7Tjr4D2+JsW+bBSmnGo4GqgxqKLJ3D8CMr7=Ayhx0Q@mail.gmail.com> <1427.1455301014@sss.pgh.pa.us> <17358.1455314354@sss.pgh.pa.us> <CA+Tgmoa_1NV8+DJB6qLF-8Po+RqvE8F4YEeuTXH9MM5OBf9juQ@mail.gmail.com> <26400.1455328772@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