forked from orioledb/orioledb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrll_deadlock.out
204 lines (176 loc) · 4.99 KB
/
rll_deadlock.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
unused step name: savepoint_1_a
Parsed test spec with 3 sessions
starting permutation: begin_1 begin_2 begin_3 share_1 for_update_2 share_3 for_update_3 rollback_1 rollback_3 rollback_2
step begin_1: BEGIN;
step begin_2: BEGIN;
step begin_3: BEGIN;
step share_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR SHARE;
val_1
-----
1
(1 row)
step for_update_2: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR UPDATE; <waiting ...>
step share_3: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR SHARE;
val_1
-----
1
(1 row)
step for_update_3: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR UPDATE; <waiting ...>
step rollback_1: ROLLBACK;
step for_update_3: <... completed>
val_1
-----
1
(1 row)
step rollback_3: ROLLBACK;
step for_update_2: <... completed>
val_1
-----
1
(1 row)
step rollback_2: ROLLBACK;
starting permutation: begin_1 begin_2 begin_3 key_share_1 for_update_2 key_share_3 update_1 update_3 rollback_1 rollback_3 rollback_2
step begin_1: BEGIN;
step begin_2: BEGIN;
step begin_3: BEGIN;
step key_share_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step for_update_2: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR UPDATE; <waiting ...>
step key_share_3: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step update_1: UPDATE o_test_1 set val_2 = 2 WHERE val_1 = 1;
step update_3: UPDATE o_test_1 SET val_2 = 2 WHERE val_1 = 1; <waiting ...>
step rollback_1: ROLLBACK;
step update_3: <... completed>
step rollback_3: ROLLBACK;
step for_update_2: <... completed>
val_1
-----
1
(1 row)
step rollback_2: ROLLBACK;
starting permutation: begin_1 begin_2 begin_3 key_share_1 for_update_2 key_share_3 update_1 update_3 commit_1 rollback_3 rollback_2
step begin_1: BEGIN;
step begin_2: BEGIN;
step begin_3: BEGIN;
step key_share_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step for_update_2: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR UPDATE; <waiting ...>
step key_share_3: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step update_1: UPDATE o_test_1 set val_2 = 2 WHERE val_1 = 1;
step update_3: UPDATE o_test_1 SET val_2 = 2 WHERE val_1 = 1; <waiting ...>
step commit_1: COMMIT;
step update_3: <... completed>
step rollback_3: ROLLBACK;
step for_update_2: <... completed>
val_1
-----
1
(1 row)
step rollback_2: ROLLBACK;
starting permutation: begin_1 begin_2 begin_3 key_share_1 for_update_2 key_share_3 delete_3 rollback_1 rollback_3 rollback_2
step begin_1: BEGIN;
step begin_2: BEGIN;
step begin_3: BEGIN;
step key_share_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step for_update_2: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR UPDATE; <waiting ...>
step key_share_3: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step delete_3: DELETE FROM o_test_1 WHERE val_1 = 1; <waiting ...>
step rollback_1: ROLLBACK;
step delete_3: <... completed>
step rollback_3: ROLLBACK;
step for_update_2: <... completed>
val_1
-----
1
(1 row)
step rollback_2: ROLLBACK;
starting permutation: begin_1 begin_2 begin_3 key_share_1 for_update_2 key_share_3 delete_3 rollback_1 commit_3 rollback_2
step begin_1: BEGIN;
step begin_2: BEGIN;
step begin_3: BEGIN;
step key_share_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step for_update_2: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR UPDATE; <waiting ...>
step key_share_3: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step delete_3: DELETE FROM o_test_1 WHERE val_1 = 1; <waiting ...>
step rollback_1: ROLLBACK;
step delete_3: <... completed>
step commit_3: COMMIT;
step for_update_2: <... completed>
val_1
-----
(0 rows)
step rollback_2: ROLLBACK;
starting permutation: begin_1 begin_2 begin_3 key_share_1 for_update_3 forkeyshare_2 savepoint_1_b share_1 savepoint_1_b fornokeyupd_1 fornokeyupd_2 rollback_1_b rollback_1_a rollback_1 rollback_2 rollback_3
step begin_1: BEGIN;
step begin_2: BEGIN;
step begin_3: BEGIN;
step key_share_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step for_update_3: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR UPDATE; <waiting ...>
step forkeyshare_2: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR KEY SHARE;
val_1
-----
1
(1 row)
step savepoint_1_b: savepoint b;
step share_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR SHARE;
val_1
-----
1
(1 row)
step savepoint_1_b: savepoint b;
step fornokeyupd_1: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR NO KEY UPDATE;
val_1
-----
1
(1 row)
step fornokeyupd_2: SELECT val_1 FROM o_test_1 WHERE val_1 = 1 FOR NO KEY UPDATE; <waiting ...>
step rollback_1_b: ROLLBACK to b;
step rollback_1_a: ROLLBACK to a;
ERROR: savepoint "a" does not exist
step rollback_1: ROLLBACK;
step fornokeyupd_2: <... completed>
val_1
-----
1
(1 row)
step rollback_2: ROLLBACK;
step for_update_3: <... completed>
val_1
-----
1
(1 row)
step rollback_3: ROLLBACK;