pgsql: Fix isolation test to be less timing-dependent

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix isolation test to be less timing-dependent
Date: 2018-01-03 15:09:21
Message-ID: E1eWkfR-0007x2-2V@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix isolation test to be less timing-dependent

I did this by adding another locking process, which makes the other two
wait. This way the output should be stable enough.

Per buildfarm and Andres Freund
Discussion: https://postgr.es/m/20180103034445.t3utrtrnrevfsghm@alap3.anarazel.de

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0f38a1d85abebd79ad8ac348e3912463ae56192e

Modified Files
--------------
src/test/isolation/expected/multiple-cic.out | 17 +++++++++++------
src/test/isolation/specs/multiple-cic.spec | 12 ++++++++----
2 files changed, 19 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2018-01-03 15:09:56 Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY
Previous Message Tom Lane 2018-01-03 14:53:31 Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY