Skip to content

Commit e136aa1

Browse files
committed
Fix test failure. Need to mask more tablespace numbers as they
are not consistent on parallel mtr runs.
1 parent 1d55cfc commit e136aa1

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

mysql-test/suite/encryption/r/innodb-bad-key-change.result

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ Warning 192 Table test/t1 is encrypted but encryption service or used key_id is
4141
Error 1296 Got error 192 'Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.' from InnoDB
4242
DROP TABLE t1;
4343
Warnings:
44-
Warning 192 Table in tablespace 6 encrypted.However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match. Can't continue opening the table.
45-
Warning 192 Table in tablespace 6 encrypted.However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match. Can't continue opening the table.
44+
Warning 192 Table in tablespace encrypted.However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match. Can't continue opening the table.
45+
Warning 192 Table in tablespace encrypted.However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match. Can't continue opening the table.
46+
SHOW WARNINGS;
47+
Level Code Message
48+
Warning 192 Table in tablespace encrypted.However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match. Can't continue opening the table.
49+
Warning 192 Table in tablespace encrypted.However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match. Can't continue opening the table.
4650
# Start server with keys.txt
4751
CREATE TABLE t2 (c VARCHAR(8), id int not null primary key, b int, key(b)) ENGINE=InnoDB ENCRYPTED=YES;
4852
INSERT INTO t2 VALUES ('foobar',1,2);

mysql-test/suite/encryption/t/innodb-bad-key-change.test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ SHOW WARNINGS;
5959

6060
-- let $restart_parameters=--file-key-management-filename=$MYSQL_TEST_DIR/std_data/keysbad3.txt
6161
-- source include/restart_mysqld.inc
62+
63+
--replace_regex /tablespace [0-9]*/tablespace /
6264
DROP TABLE t1;
65+
--replace_regex /tablespace [0-9]*/tablespace /
66+
SHOW WARNINGS;
6367

6468
#
6569
# MDEV-8591: Database page corruption on disk or a failed space, Assertion failure in file buf0buf.cc
@@ -84,34 +88,45 @@ SELECT * FROM t2;
8488
SHOW WARNINGS;
8589
--error ER_GET_ERRMSG
8690
SELECT * FROM t2 where id = 1;
91+
--replace_regex /tablespace [0-9]*/tablespace /
8792
SHOW WARNINGS;
8893
--error ER_GET_ERRMSG
8994
SELECT * FROM t2 where b = 1;
95+
--replace_regex /tablespace [0-9]*/tablespace /
9096
SHOW WARNINGS;
9197
--error ER_GET_ERRMSG
9298
INSERT INTO t2 VALUES ('tmp',3,3);
99+
--replace_regex /tablespace [0-9]*/tablespace /
93100
SHOW WARNINGS;
94101
--error ER_GET_ERRMSG
95102
DELETE FROM t2 where b = 3;
103+
--replace_regex /tablespace [0-9]*/tablespace /
96104
SHOW WARNINGS;
97105
--error ER_GET_ERRMSG
98106
DELETE FROM t2 where id = 3;
107+
--replace_regex /tablespace [0-9]*/tablespace /
99108
SHOW WARNINGS;
100109
--error ER_GET_ERRMSG
101110
UPDATE t2 set b = b +1;
111+
--replace_regex /tablespace [0-9]*/tablespace /
102112
SHOW WARNINGS;
103113
OPTIMIZE TABLE t2;
114+
--replace_regex /tablespace [0-9]*/tablespace /
104115
SHOW WARNINGS;
105116
--error ER_GET_ERRMSG
106117
ALTER TABLE t2 ADD COLUMN c INT;
118+
--replace_regex /tablespace [0-9]*/tablespace /
107119
SHOW WARNINGS;
108120
ANALYZE TABLE t2;
121+
--replace_regex /tablespace [0-9]*/tablespace /
109122
SHOW WARNINGS;
110123
--error ER_GET_ERRMSG
111124
TRUNCATE TABLE t2;
125+
--replace_regex /tablespace [0-9]*/tablespace /
112126
SHOW WARNINGS;
113127
--error ER_GET_ERRMSG
114128
DROP TABLE t2;
129+
--replace_regex /tablespace [0-9]*/tablespace /
115130
SHOW WARNINGS;
116131

117132
--echo
@@ -120,4 +135,5 @@ SHOW WARNINGS;
120135
-- source include/restart_mysqld.inc
121136

122137
DROP TABLE t2;
138+
--replace_regex /tablespace [0-9]*/tablespace /
123139
SHOW WARNINGS;

0 commit comments

Comments
 (0)