File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
storage/rocksdb/mysql-test/rocksdb Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,14 @@ id id2 value
66
66
2 1 2
67
67
truncate table t2;
68
68
connection con1;
69
- set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go1 ';
69
+ set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go ';
70
70
insert into t1 values (1,1);
71
+ connection default;
72
+ set debug_sync='now WAIT_FOR parked1';
71
73
connection con2;
72
- set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go2 ';
74
+ set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go ';
73
75
insert into t2 values (1,1,1);
74
76
connection default;
75
- set debug_sync='now WAIT_FOR parked1';
76
77
set debug_sync='now WAIT_FOR parked2';
77
78
connection con3;
78
79
set session rocksdb_lock_wait_timeout=1;
@@ -81,8 +82,7 @@ ERROR HY000: Lock wait timeout exceeded; try restarting transaction
81
82
insert into t2 values (2,1,2);
82
83
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
83
84
connection default;
84
- set debug_sync='now SIGNAL go1';
85
- set debug_sync='now SIGNAL go2';
85
+ set debug_sync='now SIGNAL go';
86
86
connection con1;
87
87
connection con2;
88
88
connection default;
Original file line number Diff line number Diff line change @@ -102,15 +102,17 @@ truncate table t2;
102
102
103
103
# 4) simulating T1 GetForUpdate() -> T2 GetForUpdate(). T2 should fail with lock wait timeout.
104
104
connection con1;
105
- set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go1 ';
105
+ set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go ';
106
106
send insert into t1 values (1,1);
107
107
108
+ connection default;
109
+ set debug_sync='now WAIT_FOR parked1';
110
+
108
111
connection con2;
109
- set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go2 ';
112
+ set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go ';
110
113
send insert into t2 values (1,1,1);
111
114
112
115
connection default;
113
- set debug_sync='now WAIT_FOR parked1';
114
116
set debug_sync='now WAIT_FOR parked2';
115
117
116
118
connection con3;
@@ -121,8 +123,7 @@ insert into t1 values (1,2);
121
123
insert into t2 values (2,1,2);
122
124
123
125
connection default;
124
- set debug_sync='now SIGNAL go1';
125
- set debug_sync='now SIGNAL go2';
126
+ set debug_sync='now SIGNAL go';
126
127
127
128
connection con1;
128
129
reap;
You can’t perform that action at this time.
0 commit comments