pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kyle Kingsbury <aphyr@jepsen.io>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Andres Freund <andres@anarazel.de>
Cc: Kevin Grittner <kgrittn@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: Potential G2-item cycles under serializable isolation
Date: Fri, 12 Jun 2020 08:34:41 -0400
Message-ID: <25801cd7-3e32-c81b-ad9f-0d3e89802c50@jepsen.io> (raw)
In-Reply-To: <CAH2-WzkwhCz3dRXPU0GH182sBNsA85noKTBFaOA2Trit0t-RiA@mail.gmail.com>
References: <CAH2-WznZO2kgJr+jR5mSp3bsSZKqbevztdPq-eZLcgGML_vBMw@mail.gmail.com>
	<80e772f7-a46d-7bfd-28d0-4017bf5cd2e5@jepsen.io>
	<CAH2-WznURpoCuxHV28kBsNwi9TDM0zMkrA8JjTvymXaYfyCOkQ@mail.gmail.com>
	<e1c7919d-2dc5-4099-e825-9bda876f2e82@jepsen.io>
	<CAH2-WznZTCC15qJwpR=12YEO0wdJGze=JnySAwj66UFme08yUA@mail.gmail.com>
	<CAH2-WznTb6-0fjW4WPzNQh4mFvBH86J7bqZpNqteVUzo8p=6Hg@mail.gmail.com>
	<d91de157-b590-dd4b-3585-79f4ece79dfa@jepsen.io>
	<CAH2-Wz=9szcV1CQk4ZTj2GOKdjzf_DAAbfXdssKJnxpdX3pL2A@mail.gmail.com>
	<CAH2-Wzk+FHVJvSS9VPPJ_K9w4xwqeVyfnkzYWtWrBzXJSJcMVQ@mail.gmail.com>
	<CAH2-Wzkk5CS2emjrftQXemjDVNkYSrUEXtHd-hoxBGsjSA01Ew@mail.gmail.com>
	<20200609021706.62lwps6uywkp4kxt@alap3.anarazel.de>
	<CAH2-Wz=n7P5S_+mJHaZa4EP3qM9CGidSvocy38hm+TLvhWp1-A@mail.gmail.com>
	<CAH2-Wzk=-gRrZP4mvsFeFN8VQDw2WNdS8AnJG8eX020Q7XSmMQ@mail.gmail.com>
	<0a53caa2-d568-0283-a448-96bd4d68c235@jepsen.io>
	<CAH2-WzkwhCz3dRXPU0GH182sBNsA85noKTBFaOA2Trit0t-RiA@mail.gmail.com>

On 6/11/20 6:51 PM, Peter Geoghegan wrote:
> On Wed, Jun 10, 2020 at 8:14 PM Kyle Kingsbury <aphyr@jepsen.io> wrote:
>> I wanted to let you know that I've put together a draft of a report on these
>> findings, and if you've got any comments you'd like to offer, I'd be happy to
>> hear them, either on-list or privately.
>> http://jepsen.io/analyses/postgresql-12.3?draft-token=Kets1Quayfs
> You should mention that a fix was committed this morning:
>
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=5940ffb221316ab73e6fdc780dfe9a07d4221...

Ah, fantastic!

> You may want to draw attention to the isolation test, since it's a
> perfect distillation of the bug. I'm certain that it cannot be
> simplified any further.

I mentioned it in the discussion, but now I can offer a direct link. Great work. :)

> Note that the test involves three transactions/sessions -- not two.
> Elle always complained about a pair of transactions that had a cycle,
> which were similar to the "foo" and "bar" sessions from the test. But
> Elle never said anything about a third transaction (that played the
> role of the "trouble" transaction from the test). Of course, this
> makes perfect sense -- the third/"trouble" transaction *should* be
> totally irrelevant. Note that the UPDATE has to come from a third
> session/transaction for things to go awry. And note that the order of
> each statement has to match the order from the isolation test. For
> example, no problems occur if you flip the order of "trouble_update"
> and "bar_select" -- because that would mean that the physical tuple
> does not get physically updated before being examined by "bar_select".

Ah, thank you. I didn't quite understand this from the second patch commit message.

> You should also specifically mention that the next upcoming minor
> release will be on August 13th, 2020:
>
> https://www.postgresql.org/developer/roadmap/
>
> Users that are concerned about this bug will be able to get a new
> minor release with the fix by that date, at the latest.

That's great news. Will do! :)

--Kyle






view thread (77+ messages)  latest in thread

Message-ID: <25801cd7-3e32-c81b-ad9f-0d3e89802c50@jepsen.io>
Permalink:  ../25801cd7-3e32-c81b-ad9f-0d3e89802c50@jepsen.io/
Also on:    postgresql.org/message-id/25801cd7-3e32-c81b-ad9f-0d3e89802c50@jepsen.io

 · 

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-bugs@postgresql.org
  Cc: aphyr@jepsen.io, pg@bowt.ie, andres@anarazel.de, kgrittn@gmail.com, pgsql@j-davis.com
  Subject: Re: Potential G2-item cycles under serializable isolation
  In-Reply-To: <25801cd7-3e32-c81b-ad9f-0d3e89802c50@jepsen.io>
  References: <CAH2-WznZO2kgJr+jR5mSp3bsSZKqbevztdPq-eZLcgGML_vBMw@mail.gmail.com> <80e772f7-a46d-7bfd-28d0-4017bf5cd2e5@jepsen.io> <CAH2-WznURpoCuxHV28kBsNwi9TDM0zMkrA8JjTvymXaYfyCOkQ@mail.gmail.com> <e1c7919d-2dc5-4099-e825-9bda876f2e82@jepsen.io> <CAH2-WznZTCC15qJwpR=12YEO0wdJGze=JnySAwj66UFme08yUA@mail.gmail.com> <CAH2-WznTb6-0fjW4WPzNQh4mFvBH86J7bqZpNqteVUzo8p=6Hg@mail.gmail.com> <d91de157-b590-dd4b-3585-79f4ece79dfa@jepsen.io> <CAH2-Wz=9szcV1CQk4ZTj2GOKdjzf_DAAbfXdssKJnxpdX3pL2A@mail.gmail.com> <CAH2-Wzk+FHVJvSS9VPPJ_K9w4xwqeVyfnkzYWtWrBzXJSJcMVQ@mail.gmail.com> <CAH2-Wzkk5CS2emjrftQXemjDVNkYSrUEXtHd-hoxBGsjSA01Ew@mail.gmail.com> <20200609021706.62lwps6uywkp4kxt@alap3.anarazel.de> <CAH2-Wz=n7P5S_+mJHaZa4EP3qM9CGidSvocy38hm+TLvhWp1-A@mail.gmail.com> <CAH2-Wzk=-gRrZP4mvsFeFN8VQDw2WNdS8AnJG8eX020Q7XSmMQ@mail.gmail.com> <0a53caa2-d568-0283-a448-96bd4d68c235@jepsen.io> <CAH2-WzkwhCz3dRXPU0GH182sBNsA85noKTBFaOA2Trit0t-RiA@mail.gmail.com> <25801cd7-3e32-c81b-ad9f-0d3e89802c50@jepsen.io>

* 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