mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Make a test more robust
Change buffering will occasionally happen if other pages are not flushed quickly enough.
This commit is contained in:
@@ -488,8 +488,6 @@ INDEX idx3(c4(512))) Engine=InnoDB;
|
||||
connect purge_control,localhost,root;
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
connection default;
|
||||
SET GLOBAL innodb_monitor_reset = ibuf_merges;
|
||||
SET GLOBAL innodb_monitor_reset = ibuf_merges_insert;
|
||||
INSERT INTO t1
|
||||
SELECT 1 + seq, 1 + (seq MOD 4),
|
||||
REPEAT(SUBSTR('abcd', 1 + (seq MOD 4), 1), 2048),
|
||||
@@ -660,22 +658,9 @@ COUNT(*)
|
||||
SELECT SUM(c2) FROM t1;
|
||||
SUM(c2)
|
||||
124160
|
||||
SELECT name
|
||||
FROM information_schema.innodb_metrics
|
||||
WHERE name = 'ibuf_merges_insert' AND count = 0;
|
||||
name
|
||||
ibuf_merges_insert
|
||||
FLUSH TABLES t1 FOR EXPORT;
|
||||
backup: t1
|
||||
UNLOCK TABLES;
|
||||
SELECT name
|
||||
FROM information_schema.innodb_metrics
|
||||
WHERE name = 'ibuf_merges' AND count > 0;
|
||||
name
|
||||
SELECT name
|
||||
FROM information_schema.innodb_metrics
|
||||
WHERE name = 'ibuf_merges_inserts' AND count > 0;
|
||||
name
|
||||
connection purge_control;
|
||||
COMMIT;
|
||||
disconnect purge_control;
|
||||
@@ -954,10 +939,4 @@ SET SESSION debug_dbug=@saved_debug_dbug;
|
||||
DROP TABLE t1;
|
||||
unlink: t1.ibd
|
||||
unlink: t1.cfg
|
||||
set global innodb_monitor_disable = all;
|
||||
set global innodb_monitor_reset_all = all;
|
||||
set global innodb_monitor_enable = default;
|
||||
set global innodb_monitor_disable = default;
|
||||
set global innodb_monitor_reset = default;
|
||||
set global innodb_monitor_reset_all = default;
|
||||
SET GLOBAL INNODB_FILE_PER_TABLE=@file_per_table;
|
||||
|
Reference in New Issue
Block a user