mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
relax the XA recovery error
it's just a suggestion anyway, not a bullet-proof check, let's not act as if it is
This commit is contained in:
@@ -4,6 +4,7 @@ call mtr.add_suppression("InnoDB: Recovery cannot access file");
|
|||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error\\.");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error\\.");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page ");
|
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page ");
|
||||||
call mtr.add_suppression("InnoDB: Cannot apply log to \\[page id: space=[1-9][0-9]*, page number=0\\] of corrupted file '.*test.t[1-5]\\.ibd'");
|
call mtr.add_suppression("InnoDB: Cannot apply log to \\[page id: space=[1-9][0-9]*, page number=0\\] of corrupted file '.*test.t[1-5]\\.ibd'");
|
||||||
call mtr.add_suppression("InnoDB: Failed to read page .* from file '.*'");
|
call mtr.add_suppression("InnoDB: Failed to read page .* from file '.*'");
|
||||||
|
@@ -10,6 +10,7 @@ call mtr.add_suppression("InnoDB: Failed to read page [123] from file '.*test.t1
|
|||||||
call mtr.add_suppression("InnoDB: The page \\[page id: space=\\d+, page number=3\\] in file '.*test.t1\\.ibd' cannot be decrypted");
|
call mtr.add_suppression("InnoDB: The page \\[page id: space=\\d+, page number=3\\] in file '.*test.t1\\.ibd' cannot be decrypted");
|
||||||
call mtr.add_suppression("InnoDB: Table in tablespace \\d+ encrypted. However key management plugin or used key_version \\d+ is not found or used encryption algorithm or method does not match. Can't continue opening the table.");
|
call mtr.add_suppression("InnoDB: Table in tablespace \\d+ encrypted. However key management plugin or used key_version \\d+ is not found or used encryption algorithm or method does not match. Can't continue opening the table.");
|
||||||
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page ");
|
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page ");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
|
|
||||||
let INNODB_PAGE_SIZE=`select @@innodb_page_size`;
|
let INNODB_PAGE_SIZE=`select @@innodb_page_size`;
|
||||||
|
@@ -9,6 +9,7 @@ call mtr.add_suppression("InnoDB: Recovery cannot access file");
|
|||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error\\.");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error\\.");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page ");
|
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page ");
|
||||||
call mtr.add_suppression("InnoDB: Cannot apply log to \\[page id: space=[1-9][0-9]*, page number=0\\] of corrupted file '.*test.t[1-5]\\.ibd'");
|
call mtr.add_suppression("InnoDB: Cannot apply log to \\[page id: space=[1-9][0-9]*, page number=0\\] of corrupted file '.*test.t[1-5]\\.ibd'");
|
||||||
call mtr.add_suppression("InnoDB: Failed to read page .* from file '.*'");
|
call mtr.add_suppression("InnoDB: Failed to read page .* from file '.*'");
|
||||||
|
@@ -2,6 +2,7 @@ call mtr.add_suppression("Creating system tablespace with existing redo log file
|
|||||||
call mtr.add_suppression("InnoDB: Database creation was aborted");
|
call mtr.add_suppression("InnoDB: Database creation was aborted");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
CREATE TABLE t(a INT) ENGINE=InnoDB;
|
CREATE TABLE t(a INT) ENGINE=InnoDB;
|
||||||
# Kill the server
|
# Kill the server
|
||||||
# restart
|
# restart
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
CREATE TABLE t1(f1 INT NOT NULL, f2 TEXT)ENGINE=InnoDB;
|
CREATE TABLE t1(f1 INT NOT NULL, f2 TEXT)ENGINE=InnoDB;
|
||||||
# restart: --debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0
|
# restart: --debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0
|
||||||
|
@@ -2,6 +2,7 @@ call mtr.add_suppression("InnoDB: The change buffer is corrupted");
|
|||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted at srv0start.cc");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted at srv0start.cc");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
CREATE TABLE t1(c TEXT, KEY(c(3072)))ENGINE=InnoDB CHARSET=latin1;
|
CREATE TABLE t1(c TEXT, KEY(c(3072)))ENGINE=InnoDB CHARSET=latin1;
|
||||||
CREATE PROCEDURE dorepeat()
|
CREATE PROCEDURE dorepeat()
|
||||||
LOOP
|
LOOP
|
||||||
|
@@ -21,6 +21,7 @@ call mtr.add_suppression("InnoDB: Tablespace .* was not found at.*bug16735660");
|
|||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted*");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted*");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("Table .*bug16720368.* is corrupted");
|
call mtr.add_suppression("Table .*bug16720368.* is corrupted");
|
||||||
-- enable_query_log
|
-- enable_query_log
|
||||||
|
|
||||||
|
@@ -10,6 +10,7 @@ call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) co
|
|||||||
call mtr.add_suppression("Table `test`.`t1` is corrupted. Please drop the table and recreate.");
|
call mtr.add_suppression("Table `test`.`t1` is corrupted. Please drop the table and recreate.");
|
||||||
call mtr.add_suppression("InnoDB: File '.*test/t1\\.ibd' is corrupted");
|
call mtr.add_suppression("InnoDB: File '.*test/t1\\.ibd' is corrupted");
|
||||||
call mtr.add_suppression("InnoDB: A long wait .* was observed for dict_sys");
|
call mtr.add_suppression("InnoDB: A long wait .* was observed for dict_sys");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
|
|
||||||
let INNODB_PAGE_SIZE=`select @@innodb_page_size`;
|
let INNODB_PAGE_SIZE=`select @@innodb_page_size`;
|
||||||
|
@@ -6,6 +6,7 @@ call mtr.add_suppression("Creating system tablespace with existing redo log file
|
|||||||
call mtr.add_suppression("InnoDB: Database creation was aborted");
|
call mtr.add_suppression("InnoDB: Database creation was aborted");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
|
|
||||||
--let $MYSQLD_DATADIR=`SELECT @@datadir`
|
--let $MYSQLD_DATADIR=`SELECT @@datadir`
|
||||||
--let $DATA= $MYSQLD_DATADIR/ibdata1
|
--let $DATA= $MYSQLD_DATADIR/ibdata1
|
||||||
|
@@ -1235,6 +1235,7 @@ call mtr.add_suppression("InnoDB: Tablespace .* was not found at .*t[12].ibd.");
|
|||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
|
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--source include/test_db_charset_restore.inc
|
--source include/test_db_charset_restore.inc
|
||||||
|
@@ -7,6 +7,7 @@ call mtr.add_suppression("\\[ERROR\\] InnoDB: Failed to read page 19 from file '
|
|||||||
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page .*, page number=19\\]");
|
call mtr.add_suppression("InnoDB: (Unable to apply log to|Discarding log for) corrupted page .*, page number=19\\]");
|
||||||
call mtr.add_suppression("\\[ERROR\\] InnoDB: Plugin initialization aborted at srv0start\\.cc.* with error Data structure corruption");
|
call mtr.add_suppression("\\[ERROR\\] InnoDB: Plugin initialization aborted at srv0start\\.cc.* with error Data structure corruption");
|
||||||
call mtr.add_suppression("\\[ERROR\\] Plugin 'InnoDB' (init function|registration)");
|
call mtr.add_suppression("\\[ERROR\\] Plugin 'InnoDB' (init function|registration)");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("\\[ERROR\\] InnoDB: We detected index corruption");
|
call mtr.add_suppression("\\[ERROR\\] InnoDB: We detected index corruption");
|
||||||
call mtr.add_suppression("\\[ERROR\\] (mysqld|mariadbd).*: Index for table 't1' is corrupt; try to repair it");
|
call mtr.add_suppression("\\[ERROR\\] (mysqld|mariadbd).*: Index for table 't1' is corrupt; try to repair it");
|
||||||
call mtr.add_suppression("InnoDB: btr_pcur_open_low level: 0 table: `test`\\.`t1` index: `PRIMARY`");
|
call mtr.add_suppression("InnoDB: btr_pcur_open_low level: 0 table: `test`\\.`t1` index: `PRIMARY`");
|
||||||
|
@@ -168,6 +168,7 @@ call mtr.add_suppression("InnoDB: Could not find a valid tablespace file for `te
|
|||||||
call mtr.add_suppression("InnoDB: Ignoring tablespace for test/u[1-3] because it could not be opened\\.");
|
call mtr.add_suppression("InnoDB: Ignoring tablespace for test/u[1-3] because it could not be opened\\.");
|
||||||
call mtr.add_suppression("InnoDB: Failed to find tablespace for table .* in the cache. Attempting to load the tablespace with space id");
|
call mtr.add_suppression("InnoDB: Failed to find tablespace for table .* in the cache. Attempting to load the tablespace with space id");
|
||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' \(init function returned error\|registration as a STORAGE ENGINE failed\)");
|
call mtr.add_suppression("Plugin 'InnoDB' \(init function returned error\|registration as a STORAGE ENGINE failed\)");
|
||||||
call mtr.add_suppression("InnoDB: Table test/u[123] in the InnoDB data dictionary has tablespace id [1-9][0-9]*, but tablespace with that id or name does not exist\\. Have you deleted or moved \\.ibd files\\?");
|
call mtr.add_suppression("InnoDB: Table test/u[123] in the InnoDB data dictionary has tablespace id [1-9][0-9]*, but tablespace with that id or name does not exist\\. Have you deleted or moved \\.ibd files\\?");
|
||||||
call mtr.add_suppression("InnoDB: Cannot replay rename of tablespace.*");
|
call mtr.add_suppression("InnoDB: Cannot replay rename of tablespace.*");
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
--source include/have_debug.inc
|
--source include/have_debug.inc
|
||||||
|
|
||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
CREATE TABLE t1(f1 INT NOT NULL, f2 TEXT)ENGINE=InnoDB;
|
CREATE TABLE t1(f1 INT NOT NULL, f2 TEXT)ENGINE=InnoDB;
|
||||||
let $restart_parameters=--debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0;
|
let $restart_parameters=--debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0;
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
call mtr.add_suppression("syntax error in innodb_log_group_home_dir");
|
call mtr.add_suppression("syntax error in innodb_log_group_home_dir");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||||
call mtr.add_suppression("InnoDB: innodb_read_only prevents crash recovery");
|
call mtr.add_suppression("InnoDB: innodb_read_only prevents crash recovery");
|
||||||
call mtr.add_suppression("InnoDB: Log file .*ib_logfile1.* size");
|
call mtr.add_suppression("InnoDB: Log file .*ib_logfile1.* size");
|
||||||
|
@@ -6,6 +6,7 @@ call mtr.add_suppression("InnoDB: The change buffer is corrupted");
|
|||||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted at srv0start.cc");
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted at srv0start.cc");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
||||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||||
|
call mtr.add_suppression("Fewer engines are enabled now than were before the crash");
|
||||||
CREATE TABLE t1(c TEXT, KEY(c(3072)))ENGINE=InnoDB CHARSET=latin1;
|
CREATE TABLE t1(c TEXT, KEY(c(3072)))ENGINE=InnoDB CHARSET=latin1;
|
||||||
DELIMITER |;
|
DELIMITER |;
|
||||||
|
|
||||||
|
@@ -10857,11 +10857,8 @@ int TC_LOG_MMAP::recover()
|
|||||||
number of storage engines on startup
|
number of storage engines on startup
|
||||||
*/
|
*/
|
||||||
if (data[sizeof(tc_log_magic)] > total_ha_2pc)
|
if (data[sizeof(tc_log_magic)] > total_ha_2pc)
|
||||||
{
|
sql_print_error("Fewer engines are enabled now than were before the crash. "
|
||||||
sql_print_error("Recovery failed! You must enable "
|
"Recovery might be incomplete!");
|
||||||
"all engines that were enabled at the moment of the crash");
|
|
||||||
goto err1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (my_hash_init(PSI_INSTRUMENT_ME, &xids, &my_charset_bin,
|
if (my_hash_init(PSI_INSTRUMENT_ME, &xids, &my_charset_bin,
|
||||||
tc_log_page_size/3, 0, sizeof(my_xid), 0, 0, MYF(0)))
|
tc_log_page_size/3, 0, sizeof(my_xid), 0, 0, MYF(0)))
|
||||||
|
Reference in New Issue
Block a user