pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Jonathan Rudenberg <jonathan@titanous.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Andreas Seltenreich <seltenreich@gmx.de>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [sqlsmith] Unpinning error in parallel worker
Date: Fri, 20 Apr 2018 18:24:54 -0400
Message-ID: <1524263094.362491.1345450880.691137B5@webmail.messagingengine.com> (raw )
In-Reply-To: <CAEepm=0awU3+3mdpBTREjSFg1Km1Lx3ikO5NF-fML4tirQMBmw@mail.gmail.com >
References: <87h92g83t3.fsf@credativ.de >
<CAEepm=1sLjHyauGZoXM3KCT2Gv+CHPEWQcxob_1Oo0KshRp7-Q@mail.gmail.com >
<CAEepm=2VvKCVXjg-REHTikoBUOhtfvfCyiJrT=zHDJyvMNd9pw@mail.gmail.com >
<CAEepm=23=vGz=CgVurPxBGV6SeOJ7YxSaAJKr_aH+f2cV4zrow@mail.gmail.com >
<CA+TgmoZfPOu62bR71bahf90ivOUxXpYOh0RqDiue0+dVVPNrWg@mail.gmail.com >
<1523998351.1231357.1341528496.28EBAF7F@webmail.messagingengine.com >
<CAEepm=0gtExezsnVabv79hKSzn61dbdEbzWRxqyJf1nf8hzppQ@mail.gmail.com >
<1524006065.2172367.1341656968.532A8113@webmail.messagingengine.com >
<CAEepm=1Hft9m2wp86++S86Yrn6C8O2sms4=B=66-scdQGQt7PA@mail.gmail.com >
<1524008630.2186289.1341689208.31A2DB11@webmail.messagingengine.com >
<CAEepm=0awU3+3mdpBTREjSFg1Km1Lx3ikO5NF-fML4tirQMBmw@mail.gmail.com >
On Fri, Apr 20, 2018, at 00:42, Thomas Munro wrote:
> On Wed, Apr 18, 2018 at 11:43 AM, Jonathan Rudenberg
> <jonathan@titanous.com> wrote:
> > On Tue, Apr 17, 2018, at 19:31, Thomas Munro wrote:
> >> On Wed, Apr 18, 2018 at 11:01 AM, Jonathan Rudenberg
> >> <jonathan@titanous.com> wrote:
> >> > Yep, I think I know approximately what it looked like, I've attached a lightly redacted plan. All of the hung queries were running some variant of this plan as far as I can tell.
> >>
> >> Hmm, that isn't a parallel query. I was expecting to see "Gather" and
> >> "Parallel" in there.
> >
> > Oops, I'm really sorry about that. I only have the first part of the hung queries, and there are a few variants. Here's one that's parallel.
>
> I spent some time trying to reproduce this failure without any luck,
> using query plans similar to your Gather plan fragment, and using some
> test harness code for the allocator stuff in isolation.
>
> I had an idea that (1) freeing a large object that releases and unpins
> a segment in one backend and then (2) freeing it again in another
> backend (illegally) might produce this effect with sufficiently bad
> luck. I'm still trying to reproduce that without any success, but I
> get other kinds of failures which I think you'd be seeing too if that
> hunch were right. Still looking...
Thanks for investigating! We have monitoring in place and a plan to grab stack traces if this happens again. Is there anything else that would be useful for us to try to get in addition to a stack trace from the process processing the stuck query?
view thread (20+ messages) latest in thread
Message-ID: <1524263094.362491.1345450880.691137B5@webmail.messagingengine.com>
Permalink: ../1524263094.362491.1345450880.691137B5@webmail.messagingengine.com/
Also on: postgresql.org/message-id/1524263094.362491.1345450880.691137B5@webmail.messagingengine.com
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: jonathan@titanous.com, thomas.munro@enterprisedb.com, robertmhaas@gmail.com, seltenreich@gmx.de
Subject: Re: [sqlsmith] Unpinning error in parallel worker
In-Reply-To: <1524263094.362491.1345450880.691137B5@webmail.messagingengine.com>
* 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