pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Harris <harmic@gmail.com>
Cc: Simon Riggs <simon.riggs@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Undetected Deadlock
Date: Wed, 09 Feb 2022 18:53:25 -0500
Message-ID: <1520798.1644450805@sss.pgh.pa.us> (raw)
In-Reply-To: <CADofcAUPS1fC9CGiKPQda6kjf8moFbAo4HDm58qK45W1j-3puA@mail.gmail.com>
References: <CADofcAWbMrvgwSMqO4iG_iD3E2v8ZUrC-_crB41my=VMM02-CA@mail.gmail.com>
	<202201252311.4jc4gpdzwwu7@alvherre.pgsql>
	<CADofcAXSn_oS3MOxS=1epiXirwETOB_BpBmM8w4=F3GaQe+cwA@mail.gmail.com>
	<CADofcAV29umxzTFPuJu+Cvvd5cZKkQxK0TZmpVJenWjok-=gYw@mail.gmail.com>
	<CADofcAVJdqqsm45R2LTihNaVhZ4sdSJkBXEwEV7tJ8BQ+s4gRA@mail.gmail.com>
	<CANbhV-FoXqh3YWuJLoH-36Mb+gwXG4XQdSy=9x-Zv72BFGhVww@mail.gmail.com>
	<272367.1643906187@sss.pgh.pa.us>
	<CADofcAVWMdOfyND0Mf6agsr9mOtjy+Fe=yNGMRdnSP1NYZx6qg@mail.gmail.com>
	<794618.1644188230@sss.pgh.pa.us>
	<CADofcAUPS1fC9CGiKPQda6kjf8moFbAo4HDm58qK45W1j-3puA@mail.gmail.com>

Michael Harris <harmic@gmail.com> writes:
> On Mon, 7 Feb 2022 at 09:57, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Do you want to try this and see if it actually adds any robustness with your buggy code?

> Sorry for the delayed response, & thanks for the patch.

> I wasn't able to test with our actual application because it could
> take days for it to actually trigger the problem, so I tested it with
> a simulation, which you can find here:

> https://github.com/harmic/pg_almloss

> With that simulation I could attach gdb to the backend and see that
> signal_pending & signal_due_at were being reset in the expected way,
> even when a missed interrupt was triggered.

> I'm convinced your patch improves robustness under the scenario we saw.

Great, thanks for testing!

			regards, tom lane





view thread (19+ messages)  latest in thread

Message-ID: <1520798.1644450805@sss.pgh.pa.us>
Permalink:  ../1520798.1644450805@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1520798.1644450805@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, harmic@gmail.com, simon.riggs@enterprisedb.com, alvherre@alvh.no-ip.org
  Subject: Re: Undetected Deadlock
  In-Reply-To: <1520798.1644450805@sss.pgh.pa.us>
  References: <CADofcAWbMrvgwSMqO4iG_iD3E2v8ZUrC-_crB41my=VMM02-CA@mail.gmail.com> <202201252311.4jc4gpdzwwu7@alvherre.pgsql> <CADofcAXSn_oS3MOxS=1epiXirwETOB_BpBmM8w4=F3GaQe+cwA@mail.gmail.com> <CADofcAV29umxzTFPuJu+Cvvd5cZKkQxK0TZmpVJenWjok-=gYw@mail.gmail.com> <CADofcAVJdqqsm45R2LTihNaVhZ4sdSJkBXEwEV7tJ8BQ+s4gRA@mail.gmail.com> <CANbhV-FoXqh3YWuJLoH-36Mb+gwXG4XQdSy=9x-Zv72BFGhVww@mail.gmail.com> <272367.1643906187@sss.pgh.pa.us> <CADofcAVWMdOfyND0Mf6agsr9mOtjy+Fe=yNGMRdnSP1NYZx6qg@mail.gmail.com> <794618.1644188230@sss.pgh.pa.us> <CADofcAUPS1fC9CGiKPQda6kjf8moFbAo4HDm58qK45W1j-3puA@mail.gmail.com> <1520798.1644450805@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