mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixes for some randomly occuring test failures in Buildbot.
mysql-test/r/innodb-timeout.result: Make test more robust to scheduling delays on the host running the test suite. mysql-test/suite/rpl/r/rpl_relayspace.result: Apply patch from BUG#25228 and tweak timeout value in an attempt to fix random failure of this test in Buildbot (could not repeat locally). mysql-test/suite/rpl/t/rpl_relayspace.test: Apply patch from BUG#25228 and tweak timeout value in an attempt to fix random failure of this test in Buildbot (could not repeat locally). mysql-test/t/innodb-timeout.test: Make test more robust to scheduling delays on the host running the test suite. mysql-test/valgrind.supp: Add suppression for Glibc bug.
This commit is contained in:
@ -23,6 +23,7 @@ select @@innodb_lock_wait_timeout;
|
||||
create table t1(a int primary key)engine=innodb;
|
||||
begin;
|
||||
insert into t1 values(1),(2),(3);
|
||||
set innodb_lock_wait_timeout=5;
|
||||
select * from t1 for update;
|
||||
commit;
|
||||
a
|
||||
@ -31,8 +32,15 @@ a
|
||||
3
|
||||
begin;
|
||||
insert into t1 values(4);
|
||||
set innodb_lock_wait_timeout=2;
|
||||
set @a= current_timestamp();
|
||||
select * from t1 for update;
|
||||
commit;
|
||||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||||
set @b= current_timestamp();
|
||||
set @c= timestampdiff(SECOND, @a, @b);
|
||||
select if(@c >= 1 and @c <= 10, 'OK', concat("NOT OK, time passed=", @c));
|
||||
if(@c >= 1 and @c <= 10, 'OK', concat("NOT OK, time passed=", @c))
|
||||
OK
|
||||
commit;
|
||||
drop table t1;
|
||||
set global innodb_lock_wait_timeout=50;
|
||||
|
Reference in New Issue
Block a user