Re: Regression stoping PostgreSQL 9.4.13 if a walsender is running

From: Andres Freund <andres(at)anarazel(dot)de>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Marco Nenciarini <marco(dot)nenciarini(at)2ndquadrant(dot)it>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Regression stoping PostgreSQL 9.4.13 if a walsender is running
Date: 2017-08-23 07:34:41
Message-ID: 20170823073441.rjwubnttoha2hiks@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2017-08-23 09:52:45 +0900, Michael Paquier wrote:
> On Wed, Aug 23, 2017 at 2:28 AM, Marco Nenciarini
> <marco(dot)nenciarini(at)2ndquadrant(dot)it> wrote:
> > I have noticed that after the 9.4.13 release PostgreSQL reliably fails
> > to shutdown with smart and fast method if there is a running walsender.
> >
> > The postmaster continues waiting forever for the walsender termination.
> >
> > It works perfectly with all the other major releases.
>
> Right. A similar issue has been reported yesterday:
> https://www.postgresql.org/message-id/CAA5_DuD0O1XyM8OnOzhRepyPU-t8nZKLzs1pT2JpzP0NS+vVNA@mail.gmail.com
> Thanks for digging into the origin of the problem, I was lacking of
> time yesterday to look at it.
>
> > I bisected the issue to commit 1cdc0ab9c180222a94e1ea11402e728688ddc37d
> >
> > After some investigation I discovered that the instruction that sets
> > got_SIGUSR2 was lost during the backpatch in the WalSndLastCycleHandler
> > function.

Yea, that's an annoying screwup (by me) - there were merge conflicts on
every single version, so apparently I screwed up at least one of them
:(. Sorry for that.

Will fix tomorrow.

> That looks correct to me, only REL9_4_STABLE is impacted. This bug
> breaks many use cases like failovers :(

Well, scheduled failovers, that is.

- Andres

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2017-08-23 08:55:50 Re: Tuple-routing for certain partitioned tables not working as expected
Previous Message Konstantin Knizhnik 2017-08-23 07:26:20 Re: [PATCH] Push limit to sort through a subquery