mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-7181: innodb.innodb_defrag_concurrent fails in buildbot
Problem was that test tried to calculate number of pages on buffer pool and operations done to them. This is not realible way on buildbot.
This commit is contained in:
@ -5,30 +5,24 @@ select @@global.innodb_stats_persistent;
|
||||
set global innodb_defragment_stats_accuracy = 80;
|
||||
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY AUTO_INCREMENT, b VARCHAR(256), c INT, KEY second(a, b),KEY third(c)) ENGINE=INNODB;
|
||||
SET @@global.innodb_defragment_n_pages = 20;
|
||||
after populate PRIMARY
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
20000
|
||||
after populate second
|
||||
select count(*) from t1 force index (second);
|
||||
count(*)
|
||||
20000
|
||||
after populate third
|
||||
select count(*) from t1 force index (third);
|
||||
count(*)
|
||||
20000
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
15800
|
||||
after delete PRIMAY
|
||||
select count(*) from t1 force index (second);
|
||||
count(*)
|
||||
15800
|
||||
after delete second
|
||||
select count(*) from t1 force index (third);
|
||||
count(*)
|
||||
15800
|
||||
after delete third
|
||||
select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like '%t1%' and stat_name in ('n_pages_freed');
|
||||
count(stat_value) > 0
|
||||
0
|
||||
@ -46,21 +40,15 @@ UPDATE t1 SET c = c + 1 where c between 2000 and 8000;;
|
||||
optimize table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
select sleep(5);
|
||||
sleep(5)
|
||||
0
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
15723
|
||||
after optimize PRIMARY
|
||||
select count(*) from t1 force index (second);
|
||||
count(*)
|
||||
15723
|
||||
after optimize second
|
||||
select count(*) from t1 force index (third);
|
||||
count(*)
|
||||
15723
|
||||
after optimize third
|
||||
select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like '%t1%' and stat_name in ('n_pages_freed');
|
||||
count(stat_value) > 0
|
||||
1
|
||||
|
Reference in New Issue
Block a user