mirror of
https://github.com/MariaDB/server.git
synced 2025-12-01 17:39:21 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
call mtr.add_suppression("Plugin 'file_key_management'");
|
||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
||||
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[0-9]+\\] in file .*test/t[1-4]\\.ibd cannot be decrypted");
|
||||
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[0-9]+\\] in file '.*test/t[1-4]\\.ibd' cannot be decrypted");
|
||||
call mtr.add_suppression("failed to read or decrypt \\[page id: space=[1-9][0-9]*, page number=[1-9][0-9]*\\]");
|
||||
call mtr.add_suppression("InnoDB: Unable to decompress .*.test.t1\\.ibd\\[page id: space=[1-9][0-9]*, page number=[0-9]+\\]");
|
||||
call mtr.add_suppression("InnoDB: Database page corruption on disk or a failed file read of tablespace test/t1 page \\[page id: space=[1-9][0-9]*, page number=[0-9]*\\]");
|
||||
call mtr.add_suppression("InnoDB: Unable to decompress .*.test.t[12]\\.ibd\\[page id: space=[1-9][0-9]*, page number=[0-9]+\\]");
|
||||
call mtr.add_suppression("InnoDB: Database page corruption on disk or a failed file read of tablespace test/t[12] page \\[page id: space=[1-9][0-9]*, page number=[0-9]*\\]");
|
||||
call mtr.add_suppression("InnoDB: Failed to read file '.*' at offset .*");
|
||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
|
||||
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt
|
||||
|
||||
@@ -5,10 +5,11 @@
|
||||
|
||||
call mtr.add_suppression("Plugin 'file_key_management'");
|
||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
||||
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[0-9]+\\] in file .*test/t[1-4]\\.ibd cannot be decrypted");
|
||||
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[0-9]+\\] in file '.*test/t[1-4]\\.ibd' cannot be decrypted");
|
||||
call mtr.add_suppression("failed to read or decrypt \\[page id: space=[1-9][0-9]*, page number=[1-9][0-9]*\\]");
|
||||
call mtr.add_suppression("InnoDB: Unable to decompress .*.test.t1\\.ibd\\[page id: space=[1-9][0-9]*, page number=[0-9]+\\]");
|
||||
call mtr.add_suppression("InnoDB: Database page corruption on disk or a failed file read of tablespace test/t1 page \\[page id: space=[1-9][0-9]*, page number=[0-9]*\\]");
|
||||
call mtr.add_suppression("InnoDB: Unable to decompress .*.test.t[12]\\.ibd\\[page id: space=[1-9][0-9]*, page number=[0-9]+\\]");
|
||||
call mtr.add_suppression("InnoDB: Database page corruption on disk or a failed file read of tablespace test/t[12] page \\[page id: space=[1-9][0-9]*, page number=[0-9]*\\]");
|
||||
call mtr.add_suppression("InnoDB: Failed to read file '.*' at offset .*");
|
||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
SET @save_frequency= @@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
|
||||
#
|
||||
# MDEV-17821 Assertion `!page_rec_is_supremum(rec)' failed
|
||||
# in btr_pcur_store_position
|
||||
@@ -295,3 +297,16 @@ ALTER TABLE t DROP COLUMN c, ALGORITHM=INSTANT;
|
||||
SELECT * FROM t;
|
||||
a b
|
||||
DROP TABLE t;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b INT, c INT, d INT, e INT) ENGINE=InnoDB;
|
||||
INSERT INTO t1 SET a=1;
|
||||
INSERT INTO t1 SET a=2;
|
||||
BEGIN;
|
||||
UPDATE t1 SET b=1;
|
||||
DELETE FROM t1;
|
||||
COMMIT;
|
||||
ALTER TABLE t1 DROP b, DROP c, DROP d, DROP e;
|
||||
InnoDB 0 transactions not purged
|
||||
SELECT * FROM t1;
|
||||
a
|
||||
DROP TABLE t1;
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
--source include/have_innodb.inc
|
||||
|
||||
SET @save_frequency= @@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-17821 Assertion `!page_rec_is_supremum(rec)' failed
|
||||
--echo # in btr_pcur_store_position
|
||||
@@ -313,3 +316,21 @@ ALTER TABLE t ADD COLUMN c INT, ALGORITHM=INSTANT;
|
||||
ALTER TABLE t DROP COLUMN c, ALGORITHM=INSTANT;
|
||||
SELECT * FROM t;
|
||||
DROP TABLE t;
|
||||
|
||||
# The following is nondeterministically repeating the bug in a
|
||||
# different scenario: the table is empty at the time the ALTER TABLE
|
||||
# is invoked, apparently because purge already processed the records
|
||||
# for the DELETE, but not the record for the UPDATE.
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b INT, c INT, d INT, e INT) ENGINE=InnoDB;
|
||||
INSERT INTO t1 SET a=1;
|
||||
INSERT INTO t1 SET a=2;
|
||||
BEGIN;
|
||||
UPDATE t1 SET b=1;
|
||||
DELETE FROM t1;
|
||||
COMMIT;
|
||||
|
||||
ALTER TABLE t1 DROP b, DROP c, DROP d, DROP e;
|
||||
--source include/wait_all_purged.inc
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency;
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#
|
||||
# Bug Bug #27304661 MYSQL CRASH DOING SYNC INDEX ]
|
||||
# [FATAL] INNODB: SEMAPHORE WAIT HAS LASTED > 600
|
||||
#
|
||||
CREATE TABLE t1 (
|
||||
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
|
||||
f1 TEXT(500),
|
||||
FULLTEXT idx (f1)
|
||||
) ENGINE=InnoDB;
|
||||
insert into t1 (f1) values ('fjdhfsjhf'),('dhjfhjshfj'),('dhjafjhfj');
|
||||
set @save_table_definition_cache=@@global.table_definition_cache;
|
||||
set @save_table_open_cache=@@global.table_open_cache;
|
||||
set global table_definition_cache=400;
|
||||
set global table_open_cache= 1024;
|
||||
SET @save_dbug = @@GLOBAL.debug_dbug;
|
||||
SET GLOBAL DEBUG_DBUG="+d,crash_if_fts_table_is_evicted";
|
||||
set @@global.table_definition_cache=@save_table_definition_cache;
|
||||
set @@global.table_open_cache=@save_table_open_cache;
|
||||
drop table t1;
|
||||
@@ -1,50 +0,0 @@
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/big_test.inc
|
||||
--source include/have_64bit.inc
|
||||
let $restart_noprint=2;
|
||||
|
||||
--echo #
|
||||
--echo # Bug Bug #27304661 MYSQL CRASH DOING SYNC INDEX ]
|
||||
--echo # [FATAL] INNODB: SEMAPHORE WAIT HAS LASTED > 600
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (
|
||||
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
|
||||
f1 TEXT(500),
|
||||
FULLTEXT idx (f1)
|
||||
) ENGINE=InnoDB;
|
||||
insert into t1 (f1) values ('fjdhfsjhf'),('dhjfhjshfj'),('dhjafjhfj');
|
||||
|
||||
--source include/restart_mysqld.inc
|
||||
|
||||
set @save_table_definition_cache=@@global.table_definition_cache;
|
||||
set @save_table_open_cache=@@global.table_open_cache;
|
||||
|
||||
set global table_definition_cache=400;
|
||||
set global table_open_cache= 1024;
|
||||
|
||||
SET @save_dbug = @@GLOBAL.debug_dbug;
|
||||
SET GLOBAL DEBUG_DBUG="+d,crash_if_fts_table_is_evicted";
|
||||
#Create 1000 tables, try the best to evict t1 .
|
||||
|
||||
--disable_query_log
|
||||
let $loop=1000;
|
||||
while($loop)
|
||||
{
|
||||
eval create table t_$loop(id int, name text(100), fulltext idxt_$loop(name) )engine=innodb;
|
||||
dec $loop;
|
||||
}
|
||||
|
||||
let $loop=1000;
|
||||
while($loop)
|
||||
{
|
||||
eval drop table t_$loop;
|
||||
dec $loop;
|
||||
}
|
||||
|
||||
SET GLOBAL DEBUG_DBUG = @save_dbug;
|
||||
--enable_query_log
|
||||
set @@global.table_definition_cache=@save_table_definition_cache;
|
||||
set @@global.table_open_cache=@save_table_open_cache;
|
||||
drop table t1;
|
||||
Reference in New Issue
Block a user