mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-4750 follow-up: Reduce disabling innodb_stats_persistent
This essentially reverts commit 4e89ec6692
and only disables InnoDB persistent statistics for tests where it is
desirable. By design, InnoDB persistent statistics will not be updated
except by ANALYZE TABLE or by STATS_AUTO_RECALC.
The internal transactions that update persistent InnoDB statistics
in background tasks (with innodb_stats_auto_recalc=ON) may cause
nondeterministic query plans or interfere with some tests that deal
with other InnoDB internals, such as the purge of transaction history.
This commit is contained in:
@@ -8,6 +8,7 @@ call mtr.add_suppression("InnoDB: Operating system error number");
|
||||
call mtr.add_suppression("InnoDB: The error means");
|
||||
call mtr.add_suppression("InnoDB: Cannot open datafile .*t1\\.ibd");
|
||||
call mtr.add_suppression("InnoDB: Ignoring tablespace for test/t1 ");
|
||||
call mtr.add_suppression("InnoDB: Cannot save statistics for table `test`\\.`t1` because the \\.ibd file is missing");
|
||||
FLUSH TABLES;
|
||||
SET SESSION innodb_strict_mode=1;
|
||||
CREATE TABLE t1 (c1 INT) ENGINE = Innodb
|
||||
|
@@ -1,4 +1,5 @@
|
||||
call mtr.add_suppression("InnoDB: Unable to import tablespace .* because it already exists. Please DISCARD the tablespace before IMPORT\\.");
|
||||
call mtr.add_suppression("InnoDB: Cannot save statistics for table `test`\\.`t1` because the \\.ibd file is missing");
|
||||
SET SESSION innodb_strict_mode=1;
|
||||
CREATE TABLE t1
|
||||
(a INT AUTO_INCREMENT PRIMARY KEY,
|
||||
|
@@ -1,4 +1,5 @@
|
||||
SET GLOBAL Innodb_file_per_table=on;
|
||||
SET @save_innodb_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = OFF;
|
||||
SET @save_innodb_compression_level = @@global.innodb_compression_level;
|
||||
SET global innodb_compression_level=0;
|
||||
#create table with 1K block size
|
||||
@@ -107,3 +108,4 @@ SELECT @size >= 0;
|
||||
1
|
||||
DROP TABLE tab5, tab6;
|
||||
SET GLOBAL innodb_compression_level = @save_innodb_compression_level;
|
||||
SET GLOBAL innodb_stats_persistent = @save_innodb_stats_persistent;
|
||||
|
Reference in New Issue
Block a user