Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c8be59

Browse files
committed
Revert "Fix isolation test to be less timing-dependent"
This reverts commit2268e6a. It turned out that inconsistency inthe report is still possible, so go back to the simpler formulation ofthe test and instead add an alternate expected output.Discussion:https://postgr.es/m/20180103193728.ysqpcp2xjnqpiep7@alvherre.pgsql
1 parent3e68686 commit6c8be59

File tree

3 files changed

+29
-18
lines changed

3 files changed

+29
-18
lines changed
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
Parsed test spec with3 sessions
1+
Parsed test spec with2 sessions
22

3-
starting permutation: s2l s1i s2i s3u
4-
pg_advisory_lock
5-
6-
3+
starting permutation: s2l s1i s2i
74
step s2l: SELECT pg_advisory_lock(281457);
85
pg_advisory_lock
96

@@ -14,11 +11,9 @@ step s1i:
1411
<waiting ...>
1512
step s2i:
1613
CREATE INDEX CONCURRENTLY mcic_two_pkey ON mcic_two (id)
17-
WHERE unlck() AND lck_shr(572814);
18-
<waiting ...>
19-
steps3u: SELECT unlck();
14+
WHERE unlck();
15+
16+
steps1i: <... completed>
2017
unlck
2118

2219
t
23-
step s1i: <... completed>
24-
step s2i: <... completed>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Parsed test spec with 2 sessions
2+
3+
starting permutation: s2l s1i s2i
4+
step s2l: SELECT pg_advisory_lock(281457);
5+
pg_advisory_lock
6+
7+
8+
step s1i:
9+
CREATE INDEX CONCURRENTLY mcic_one_pkey ON mcic_one (id)
10+
WHERE lck_shr(281457);
11+
<waiting ...>
12+
step s2i:
13+
CREATE INDEX CONCURRENTLY mcic_two_pkey ON mcic_two (id)
14+
WHERE unlck();
15+
<waiting ...>
16+
step s1i: <... completed>
17+
step s2i: <... completed>
18+
unlck
19+
20+
t

‎src/test/isolation/specs/multiple-cic.spec

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,15 @@ session "s1"
2626
step"s1i"{
2727
CREATEINDEXCONCURRENTLYmcic_one_pkeyONmcic_one (id)
2828
WHERElck_shr(281457);
29-
}
30-
step"s1u"{SELECTunlck(); }
29+
}
30+
teardown{SELECTunlck(); }
3131

3232

3333
session"s2"
3434
step"s2l" {SELECTpg_advisory_lock(281457); }
3535
step"s2i"{
3636
CREATEINDEXCONCURRENTLYmcic_two_pkeyONmcic_two (id)
37-
WHEREunlck()ANDlck_shr(572814);
37+
WHEREunlck();
3838
}
3939

40-
session"s3"
41-
setup{SELECTpg_advisory_lock(572814); }
42-
step"s3u"{SELECTunlck(); }
43-
44-
permutation"s2l""s1i""s2i""s3u"
40+
permutation"s2l""s1i""s2i"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp