Commit 53167031 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-14804 innodb.update_time failed in buildbot with wrong result

Let us use a minimal-size buffer pool to ensure that page flushing
will be slow enough so that LRU eviction cannot be avoided.
parent 27bf57fd
...@@ -24,8 +24,7 @@ SELECT COUNT(*) FROM information_schema.innodb_buffer_page ...@@ -24,8 +24,7 @@ SELECT COUNT(*) FROM information_schema.innodb_buffer_page
WHERE table_name = '`test`.`t`'; WHERE table_name = '`test`.`t`';
COUNT(*) COUNT(*)
1 1
# INSERT lots of data in table 'big': begin INSERT INTO big SELECT REPEAT('a', 1024) FROM seq_1_to_10240;
# INSERT lots of data in table 'big': end
SELECT COUNT(*) FROM information_schema.innodb_buffer_page SELECT COUNT(*) FROM information_schema.innodb_buffer_page
WHERE table_name = '`test`.`t`'; WHERE table_name = '`test`.`t`';
COUNT(*) COUNT(*)
......
--innodb-buffer-pool-size=10M --innodb-buffer-pool-size=5M
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
-- source include/not_embedded.inc -- source include/not_embedded.inc
# This test is slow on buildbot. # This test is slow on buildbot.
--source include/big_test.inc --source include/big_test.inc
--source include/have_sequence.inc
CREATE TABLE t (a INT) ENGINE=INNODB; CREATE TABLE t (a INT) ENGINE=INNODB;
...@@ -33,18 +34,7 @@ SELECT COUNT(*) FROM information_schema.innodb_buffer_page ...@@ -33,18 +34,7 @@ SELECT COUNT(*) FROM information_schema.innodb_buffer_page
WHERE table_name = '`test`.`t`'; WHERE table_name = '`test`.`t`';
# evict table 't' by inserting as much data as the BP size itself # evict table 't' by inserting as much data as the BP size itself
-- echo # INSERT lots of data in table 'big': begin INSERT INTO big SELECT REPEAT('a', 1024) FROM seq_1_to_10240;
-- disable_query_log
BEGIN;
-- let $i = 10240
while ($i)
{
INSERT INTO big VALUES (REPEAT('a', 1024));
dec $i;
}
COMMIT;
-- enable_query_log
-- echo # INSERT lots of data in table 'big': end
# confirm that all pages for table 't' have been evicted # confirm that all pages for table 't' have been evicted
SELECT COUNT(*) FROM information_schema.innodb_buffer_page SELECT COUNT(*) FROM information_schema.innodb_buffer_page
......
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