Skip to content

Commit 14e6f02

Browse files
committed
MDEV-20955 versioning.update failed in buildbot with wrong result code
Race condition when innodb_lock_wait_timeout (default 50 seconds) exceeds for 'send update', but information_schema.innodb_lock_waits still sees this wait or it my exit by timeout. My occur on overloaded host.
1 parent c8bd8d5 commit 14e6f02

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mysql-test/suite/versioning/r/update.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ replace t1 values (1,2),(1,3),(2,4);
249249
#
250250
# MDEV-14829 Assertion `0' failed in Protocol::end_statement upon concurrent UPDATE
251251
#
252+
set @old_lock_wait_timeout= @@innodb_lock_wait_timeout;
253+
set @@innodb_lock_wait_timeout= 1073741824;
252254
create or replace table t1 (pk int, a char(3), b char(3), primary key(pk))
253255
engine=innodb with system versioning;
254256
insert into t1 (pk) values (1);
@@ -265,6 +267,7 @@ ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
265267
disconnect con1;
266268
connection default;
267269
drop table t1;
270+
set @@innodb_lock_wait_timeout= @old_lock_wait_timeout;
268271
#
269272
# MDEV-19406 Assertion on updating view of join with versioned table
270273
#

mysql-test/suite/versioning/t/update.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ replace t1 values (1,2),(1,3),(2,4);
157157
--echo #
158158
--echo # MDEV-14829 Assertion `0' failed in Protocol::end_statement upon concurrent UPDATE
159159
--echo #
160+
set @old_lock_wait_timeout= @@innodb_lock_wait_timeout;
161+
set @@innodb_lock_wait_timeout= 1073741824;
160162
create or replace table t1 (pk int, a char(3), b char(3), primary key(pk))
161163
engine=innodb with system versioning;
162164

@@ -175,6 +177,7 @@ disconnect con1;
175177
connection default;
176178
reap;
177179
drop table t1;
180+
set @@innodb_lock_wait_timeout= @old_lock_wait_timeout;
178181

179182
--echo #
180183
--echo # MDEV-19406 Assertion on updating view of join with versioned table

0 commit comments

Comments
 (0)