pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Make the pg_rewind regression tests more robust on slow systems.
2+ messages / 2 participants
[nested] [flat]
* pgsql: Make the pg_rewind regression tests more robust on slow systems.
@ 2015-04-22 11:37 Heikki Linnakangas <heikki.linnakangas@iki.fi>
0 siblings, 1 reply; 2+ messages in thread
From: Heikki Linnakangas @ 2015-04-22 11:37 UTC (permalink / raw)
To: pgsql-committers
Make the pg_rewind regression tests more robust on slow systems.
There were a couple of hard-coded sleeps in the tests: to wait for standby
to catch up with master, and to wait for promotion with "pg_ctl promote"
to complete. Instead of a fixed, hard-coded sleep, poll the server with a
query once a second. This isn't ideal either, and I wish we had a better
solution for real-world applications too, but this should fix the
immediate problem.
Patch by Michael Paquier, with some editing by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/54a16df0100da445be7c79eb81dfb96fd0685e6d
Modified Files
--------------
src/bin/pg_rewind/RewindTest.pm | 46 ++++++++++++++++++++++++++++++++++-----
1 file changed, 41 insertions(+), 5 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgsql: Make the pg_rewind regression tests more robust on slow systems.
@ 2015-04-23 04:38 Michael Paquier <michael.paquier@gmail.com>
parent: Heikki Linnakangas <heikki.linnakangas@iki.fi>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2015-04-23 04:38 UTC (permalink / raw)
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers
On Wed, Apr 22, 2015 at 8:37 PM, Heikki Linnakangas
<heikki.linnakangas@iki.fi> wrote:
> Make the pg_rewind regression tests more robust on slow systems.
>
> There were a couple of hard-coded sleeps in the tests: to wait for standby
> to catch up with master, and to wait for promotion with "pg_ctl promote"
> to complete. Instead of a fixed, hard-coded sleep, poll the server with a
> query once a second. This isn't ideal either, and I wish we had a better
> solution for real-world applications too, but this should fix the
> immediate problem.
Just wondering: why not creating a common routine in TestLib.pm that
returns to the caller the output of stdout, stderr and the exit code?
That would be useful for other tests as well, and would help limiting
the dependency of IPC::Run into TestLib.pm.
--
Michael
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-04-23 04:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-04-22 11:37 pgsql: Make the pg_rewind regression tests more robust on slow systems. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-04-23 04:38 ` Michael Paquier <michael.paquier@gmail.com>
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