mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Make the innochecksum tests more robust.
As noted in MDEV-11947, we should disable the InnoDB doublewrite buffer during the tests, because when rewriting page checksums, innochecksum would skip the pages that are in the doublewrite buffer area. Because the doublewrite buffer is emptied on server startup and not shutdown, we should initially start with the doublewrite buffer disabled, so that there will be no warning messages for wrong page checksums in the doublewrite buffer. Also, correct the obvious typo where restart_options should have been $restart_parameters, so that InnoDB is actually verifying that the checksums were rewritten.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# Set the environmental variables
|
||||
call mtr.add_suppression("InnoDB: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts");
|
||||
call mtr.add_suppression("InnoDB: Warning: database page corruption or a failed");
|
||||
SET GLOBAL innodb_file_per_table=on;
|
||||
CREATE TABLE tab1(c1 INT PRIMARY KEY,c2 VARCHAR(20)) ENGINE=InnoDB;
|
||||
CREATE INDEX idx1 ON tab1(c2(10));
|
||||
INSERT INTO tab1 VALUES(1, 'Innochecksum InnoDB1');
|
||||
@@ -89,6 +88,4 @@ c1 c2
|
||||
FOUND /Error while setting value \'strict_crc32\' to \'write\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'strict_innodb\' to \'write\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'crc23\' to \'write\'/ in my_restart.err
|
||||
# Restart the server
|
||||
DROP TABLE tab1;
|
||||
SET GLOBAL innodb_file_per_table=default;
|
||||
|
Reference in New Issue
Block a user