Commit f8adeccd authored by Elena Stepanova's avatar Elena Stepanova

MDEV-9713 Sporadic test failure: sys_vars.innodb_buffer_pool_load_now_basic

Previous fix using wait condition did not work because of MDEV-9867, so
we have to use conditional sleep instead. Sleep will only happen if the test
is executed after another one which also ran buffer pool dump without
server restart between two tests
parent f6d99a0d
...@@ -13,11 +13,19 @@ let $old_status= `SELECT variable_value FROM information_schema.global_status ...@@ -13,11 +13,19 @@ let $old_status= `SELECT variable_value FROM information_schema.global_status
# A previous test could have run buffer pool dump already; # A previous test could have run buffer pool dump already;
# in this case we want to make sure that the current time is different # in this case we want to make sure that the current time is different
# from the timestamp in the status variable # from the timestamp in the status variable.
# We should have had a smart wait condition here, like the commented one below,
let $wait_condition = # but we can't because of MDEV-9867, so there will be just sleep instead.
SELECT TRIM(SUBSTR('$old_status', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s'); # And it might be not enough to sleep one second, so we'll have to sleep two.
-- source include/wait_condition.inc # let $wait_condition =
# SELECT TRIM(SUBSTR('$old_status', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s');
# -- source include/wait_condition.inc
if (`SELECT variable_value LIKE '%dump completed at%' FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status'`)
{
-- sleep 2
}
# Do the dump # Do the dump
SET GLOBAL innodb_buffer_pool_dump_now = ON; SET GLOBAL innodb_buffer_pool_dump_now = ON;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment