mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -167,4 +167,19 @@ buffer_LRU_batch_evict_total_pages buffer
|
||||
# FLUSH TABLES t1 FOR EXPORT;
|
||||
# UNLOCK TABLES;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# MDEV-29666 InnoDB fails to purge secondary index records
|
||||
# when indexed virtual columns exist
|
||||
#
|
||||
CREATE TABLE t1 (a INT, b INT, a1 INT AS(a) VIRTUAL,
|
||||
INDEX(a1),INDEX(b)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 SET a=1, b=1;
|
||||
UPDATE t1 SET a=2, b=3;
|
||||
InnoDB 0 transactions not purged
|
||||
FLUSH TABLE t1 FOR EXPORT;
|
||||
page 4: N_RECS=0x0001
|
||||
page 5: N_RECS=0x0001
|
||||
UNLOCK TABLES;
|
||||
DROP TABLE t1;
|
||||
# End of 10.3 tests
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency;
|
||||
|
@ -1,5 +1,6 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/innodb_page_size.inc
|
||||
--source include/no_valgrind_without_big.inc
|
||||
|
||||
--echo #
|
||||
--echo # Bug#13955083 ALLOW IN-PLACE DDL OPERATIONS ON MISSING
|
||||
|
@ -5,6 +5,7 @@
|
||||
--source include/not_embedded.inc
|
||||
# The test is not big enough to use change buffering with larger page size.
|
||||
--source include/have_innodb_max_16k.inc
|
||||
--source include/no_valgrind_without_big.inc
|
||||
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
|
||||
--disable_query_log
|
||||
|
@ -2,6 +2,8 @@
|
||||
--source include/default_charset.inc
|
||||
# need to restart server
|
||||
--source include/not_embedded.inc
|
||||
--source include/no_valgrind_without_big.inc
|
||||
|
||||
CREATE SCHEMA `repro`;
|
||||
|
||||
CREATE TABLE `repro`.`crew` (
|
||||
|
@ -4,6 +4,7 @@
|
||||
--source include/not_embedded.inc
|
||||
#Windows has trouble creating files/directories with long names
|
||||
--source include/not_windows.inc
|
||||
--source include/no_valgrind_without_big.inc
|
||||
|
||||
--echo #
|
||||
--echo # Bug#19419026 WHEN A TABLESPACE IS NOT FOUND, DO NOT REPORT "TABLE NOT FOUND"
|
||||
|
@ -149,4 +149,36 @@ WHERE NAME="buffer_LRU_batch_evict_total_pages" AND COUNT > 0;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-29666 InnoDB fails to purge secondary index records
|
||||
--echo # when indexed virtual columns exist
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (a INT, b INT, a1 INT AS(a) VIRTUAL,
|
||||
INDEX(a1),INDEX(b)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 SET a=1, b=1;
|
||||
|
||||
UPDATE t1 SET a=2, b=3;
|
||||
let DATADIR=`select @@datadir`;
|
||||
let PAGE_SIZE=`select @@innodb_page_size`;
|
||||
|
||||
source include/wait_all_purged.inc;
|
||||
FLUSH TABLE t1 FOR EXPORT;
|
||||
|
||||
perl;
|
||||
my $ps = $ENV{PAGE_SIZE};
|
||||
my $file = "$ENV{DATADIR}/test/t1.ibd";
|
||||
open(FILE, "<", $file) or die "Unable to open $file\n";
|
||||
die "Unable to read $file\n" unless
|
||||
sysread(FILE, $_, 6*$ps) == 6*$ps;
|
||||
close(FILE);
|
||||
print "page 4: N_RECS=0x", unpack("H*", substr($_, 4 * $ps + 54, 2)), "\n";
|
||||
print "page 5: N_RECS=0x", unpack("H*", substr($_, 5 * $ps + 54, 2)), "\n";
|
||||
EOF
|
||||
|
||||
UNLOCK TABLES;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of 10.3 tests
|
||||
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency;
|
||||
|
@ -2,6 +2,12 @@
|
||||
# Embedded server tests do not support restarting
|
||||
--source include/not_embedded.inc
|
||||
--source include/maybe_debug.inc
|
||||
# Slow shutdown may take more than 120 seconds under Valgrind,
|
||||
# causing the server to be (silently) killed.
|
||||
# Due to that, crash recovery could "heal" the damage that our
|
||||
# Perl code is inflicting, and the SELECT statements could succeed
|
||||
# instead of failing with ER_NO_SUCH_TABLE_IN_ENGINE.
|
||||
--source include/not_valgrind.inc
|
||||
|
||||
--disable_query_log
|
||||
call mtr.add_suppression("InnoDB: Table `mysql`\\.`innodb_table_stats` not found");
|
||||
|
@ -1,6 +1,7 @@
|
||||
--source include/have_innodb.inc
|
||||
# Embedded server does not support restarting.
|
||||
--source include/not_embedded.inc
|
||||
--source include/no_valgrind_without_big.inc
|
||||
|
||||
# MDEV-8841 - close tables opened by previous tests,
|
||||
# so they don't get marked crashed when the server gets crashed
|
||||
|
Reference in New Issue
Block a user