Followup to Bug#34604 handler::ha_rnd_end(): Assertion `inited==RND' failed.
The test case for this bug relies on getting a ER_LOCK_WAIT_TIMEOUT error. However with the introduction of MDL, the test would hang forever since the metadata locks would not timeout. MDL timeouts are now introduced in the scope of Bug#45225. This patch changes the testcase for Bug#34604 to set the new server variable "lock_wait_timeout" to one second which makes the test generate the necessary timeout again.
This commit is contained in:
parent
5bb67f34b8
commit
affdd53394
@ -212,6 +212,7 @@ SET autocommit=OFF;
|
|||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
INSERT INTO t1 VALUES (NULL, 'first row t2');
|
INSERT INTO t1 VALUES (NULL, 'first row t2');
|
||||||
SET autocommit=OFF;
|
SET autocommit=OFF;
|
||||||
|
SET SESSION lock_wait_timeout= 1;
|
||||||
ALTER TABLE t1 AUTO_INCREMENT = 10;
|
ALTER TABLE t1 AUTO_INCREMENT = 10;
|
||||||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@ -68,6 +68,7 @@ INSERT INTO t1 VALUES (NULL, 'first row t2');
|
|||||||
|
|
||||||
--connection con2
|
--connection con2
|
||||||
SET autocommit=OFF;
|
SET autocommit=OFF;
|
||||||
|
SET SESSION lock_wait_timeout= 1;
|
||||||
--error ER_LOCK_WAIT_TIMEOUT
|
--error ER_LOCK_WAIT_TIMEOUT
|
||||||
ALTER TABLE t1 AUTO_INCREMENT = 10;
|
ALTER TABLE t1 AUTO_INCREMENT = 10;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user