mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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;
|
||||
|
@ -1,6 +1,5 @@
|
||||
# Set the environmental variables
|
||||
call mtr.add_suppression("InnoDB: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts");
|
||||
SET GLOBAL innodb_file_per_table=on;
|
||||
[1]: Further Test are for rewrite checksum (innodb|crc32|none) for all ibd file & start the server.
|
||||
CREATE TABLE tab1 (pk INTEGER NOT NULL PRIMARY KEY,
|
||||
linestring_key GEOMETRY NOT NULL,
|
||||
@ -221,7 +220,4 @@ NOT FOUND /Incorrect unsigned integer value: '18446744073709551616'/ in my_resta
|
||||
NOT FOUND /Incorrect unsigned integer value: '18446744073709551616'/ in my_restart.err
|
||||
NOT FOUND /Incorrect unsigned integer value: '18446744073709551616'/ in my_restart.err
|
||||
NOT FOUND /Incorrect unsigned integer value: '18446744073709551616'/ in my_restart.err
|
||||
# Restart the server
|
||||
DROP TABLE tab1;
|
||||
DROP TABLE tab2;
|
||||
SET GLOBAL innodb_file_per_table=default;
|
||||
DROP TABLE tab1,tab2;
|
||||
|
Reference in New Issue
Block a user