From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Use condition variables to wait for checkpoints.
Date: Wed, 13 Mar 2019 19:25:37 -0400
Message-ID: <24619.1552519537@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGLUpqG52xtriUz5RpmeKPoEfNxNc-CginG+Cx+X2-Ycew@mail.gmail.com>
References: <E1h4BxT-0007ae-UP@gemulon.postgresql.org>
<CA+hUKGLUpqG52xtriUz5RpmeKPoEfNxNc-CginG+Cx+X2-Ycew@mail.gmail.com>
Thomas Munro <thomas.munro@gmail.com> writes:
> On Thu, Mar 14, 2019 at 11:02 AM Thomas Munro <tmunro@postgresql.org> wrote:
>> Use condition variables to wait for checkpoints.
> BF animal "loach" is blaming a recoveryCheck failure in
> 016_min_conistency on this commit. I wonder if there some timing
> dependency in that new test that broke when CHECKPOINT became faster.
Uh, yeah, I'd say it's pretty obvious: the failure is
error running SQL: 'psql:<stdin>:1: ERROR: relation "test1" does not exist
LINE 1: SELECT count(*) FROM test1;
^'
while running 'psql -XAtq -d port=57404 host=/tmp/8ItZDq6QmQ dbname='postgres' -f - -v ON_ERROR_STOP=1' with sql 'SELECT count(*) FROM test1;' at /usr/home/pgbf/buildroot/HEAD/pgsql.build/src/test/recovery/../../../src/test/perl/PostgresNode.pm line 1331.
and if you look at the test script, there is no sort of wait for the
creation of "test1" to propagate to the slave before we try to query
it on the slave. We'd have seen this fall over soon enough with or
without your commit.
regards, tom lane
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com, michael@paquier.xyz
Subject: Re: pgsql: Use condition variables to wait for checkpoints.
In-Reply-To: <24619.1552519537@sss.pgh.pa.us>
References: <E1h4BxT-0007ae-UP@gemulon.postgresql.org> <CA+hUKGLUpqG52xtriUz5RpmeKPoEfNxNc-CginG+Cx+X2-Ycew@mail.gmail.com> <24619.1552519537@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