From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: src/test/subscription/t/005_encoding.pl is broken
Date: Wed, 20 Sep 2017 11:29:21 -0400
Message-ID: <4252.1505921361@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqSbumuxRAJ-Kz3jVR17pewOVFReJw_PyV8ye7oFZSDzzA@mail.gmail.com>
References: <27032.1505749806@sss.pgh.pa.us>
<20170918175829.dyujv4leisqhein4@alap3.anarazel.de>
<CA+TgmoZDph8t0EDiT=ihKQNstnKhHREgADwCE5QRwQ9QKp+y6w@mail.gmail.com>
<CAB7nPqT44Nxaat2UAnrz+noe74fVz7Dv6UzRvY6oMo-+SJPrrA@mail.gmail.com>
<6768.1505835210@sss.pgh.pa.us>
<CAB7nPqSbumuxRAJ-Kz3jVR17pewOVFReJw_PyV8ye7oFZSDzzA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Wed, Sep 20, 2017 at 12:33 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> That would indicate that something isn't ever retrying the worker
>> start; but if that's the case, how is it that we get through the
>> other subscription tests with my random-failure patch in place?
> I have been able to dig into this issue further, and the problem is
> indeed in the wait logic of 005_encoding.pl. It is important to wait
> for the initial sync of the subscriber to happen. There is no need to
> incorporate the additional wait query in wait_for_caught_up() as well.
> Please see the attached which fixes the stability problems for me even
> after forcing failures in launcher.c.
Ah, that makes sense. Pushed.
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
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, robertmhaas@gmail.com, andres@anarazel.de
Subject: Re: src/test/subscription/t/005_encoding.pl is broken
In-Reply-To: <4252.1505921361@sss.pgh.pa.us>
References: <27032.1505749806@sss.pgh.pa.us> <20170918175829.dyujv4leisqhein4@alap3.anarazel.de> <CA+TgmoZDph8t0EDiT=ihKQNstnKhHREgADwCE5QRwQ9QKp+y6w@mail.gmail.com> <CAB7nPqT44Nxaat2UAnrz+noe74fVz7Dv6UzRvY6oMo-+SJPrrA@mail.gmail.com> <6768.1505835210@sss.pgh.pa.us> <CAB7nPqSbumuxRAJ-Kz3jVR17pewOVFReJw_PyV8ye7oFZSDzzA@mail.gmail.com> <4252.1505921361@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