mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
MDEV-17771: Add Galera ist and sst tests using mariabackup
Add test case for encrypted and page compressed tables.
This commit is contained in:
parent
41fa9a5986
commit
8324e5e84d
6 changed files with 1239 additions and 0 deletions
14
mysql-test/include/innodb_encrypt_tables.combinations
Normal file
14
mysql-test/include/innodb_encrypt_tables.combinations
Normal file
|
@ -0,0 +1,14 @@
|
|||
[crypt]
|
||||
innodb_encrypt_tables=ON
|
||||
plugin-load-add=$FILE_KEY_MANAGEMENT_SO
|
||||
loose-file-key-management
|
||||
loose-file-key-management-filename=$MYSQL_TEST_DIR/std_data/keys.txt
|
||||
file-key-management-encryption-algorithm=aes_ctr
|
||||
|
||||
[clear]
|
||||
innodb_encrypt_tables=OFF
|
||||
plugin-load-add=$FILE_KEY_MANAGEMENT_SO
|
||||
loose-file-key-management
|
||||
loose-file-key-management-filename=$MYSQL_TEST_DIR/std_data/keys.txt
|
||||
file-key-management-encryption-algorithm=aes_ctr
|
||||
|
4
mysql-test/include/innodb_encrypt_tables.inc
Normal file
4
mysql-test/include/innodb_encrypt_tables.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
# The goal of including this file is to enable innodb_encrypt_tables combinations
|
||||
# (see include/innodb_encrypt_tables.combinations)
|
||||
|
||||
--source include/have_innodb.inc
|
|
@ -0,0 +1,985 @@
|
|||
Performing State Transfer on a server that starts from a clean var directory
|
||||
This is accomplished by shutting down node #2 and removing its var directory before restarting it
|
||||
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (f1 CHAR(255)) ENGINE=InnoDB PAGE_COMPRESSED=1;
|
||||
CREATE TABLE t3 (f1 CHAR(255)) ENGINE=InnoDB PAGE_COMPRESSED=1 ENCRYPTED=NO;
|
||||
CREATE TABLE t4 (f1 CHAR(255)) ENGINE=InnoDB PAGE_COMPRESSED=1 ENCRYPTED=YES;
|
||||
CREATE TABLE t5 (f1 CHAR(255)) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
|
||||
CREATE TABLE t6 (f1 CHAR(255)) ENGINE=InnoDB ROW_FORMAT=COMPRESSED ENCRYPTED=NO;
|
||||
CREATE TABLE t7 (f1 CHAR(255)) ENGINE=InnoDB ROW_FORMAT=COMPRESSED ENCRYPTED=YES;
|
||||
CREATE TABLE t8 (f1 CHAR(255)) ENGINE=InnoDB ENCRYPTED=NO;
|
||||
CREATE TABLE t9 (f1 CHAR(255)) ENGINE=InnoDB ENCRYPTED=YES;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
insert into t9 values ('node1_committed_before');
|
||||
insert into t9 values ('node1_committed_before');
|
||||
insert into t9 values ('node1_committed_before');
|
||||
insert into t9 values ('node1_committed_before');
|
||||
insert into t9 values ('node1_committed_before');
|
||||
insert into t8 values ('node1_committed_before');
|
||||
insert into t8 values ('node1_committed_before');
|
||||
insert into t8 values ('node1_committed_before');
|
||||
insert into t8 values ('node1_committed_before');
|
||||
insert into t8 values ('node1_committed_before');
|
||||
insert into t7 values ('node1_committed_before');
|
||||
insert into t7 values ('node1_committed_before');
|
||||
insert into t7 values ('node1_committed_before');
|
||||
insert into t7 values ('node1_committed_before');
|
||||
insert into t7 values ('node1_committed_before');
|
||||
insert into t6 values ('node1_committed_before');
|
||||
insert into t6 values ('node1_committed_before');
|
||||
insert into t6 values ('node1_committed_before');
|
||||
insert into t6 values ('node1_committed_before');
|
||||
insert into t6 values ('node1_committed_before');
|
||||
insert into t5 values ('node1_committed_before');
|
||||
insert into t5 values ('node1_committed_before');
|
||||
insert into t5 values ('node1_committed_before');
|
||||
insert into t5 values ('node1_committed_before');
|
||||
insert into t5 values ('node1_committed_before');
|
||||
insert into t4 values ('node1_committed_before');
|
||||
insert into t4 values ('node1_committed_before');
|
||||
insert into t4 values ('node1_committed_before');
|
||||
insert into t4 values ('node1_committed_before');
|
||||
insert into t4 values ('node1_committed_before');
|
||||
insert into t3 values ('node1_committed_before');
|
||||
insert into t3 values ('node1_committed_before');
|
||||
insert into t3 values ('node1_committed_before');
|
||||
insert into t3 values ('node1_committed_before');
|
||||
insert into t3 values ('node1_committed_before');
|
||||
insert into t2 values ('node1_committed_before');
|
||||
insert into t2 values ('node1_committed_before');
|
||||
insert into t2 values ('node1_committed_before');
|
||||
insert into t2 values ('node1_committed_before');
|
||||
insert into t2 values ('node1_committed_before');
|
||||
insert into t1 values ('node1_committed_before');
|
||||
insert into t1 values ('node1_committed_before');
|
||||
insert into t1 values ('node1_committed_before');
|
||||
insert into t1 values ('node1_committed_before');
|
||||
insert into t1 values ('node1_committed_before');
|
||||
COMMIT;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
insert into t9 values ('node2_committed_before');
|
||||
insert into t9 values ('node2_committed_before');
|
||||
insert into t9 values ('node2_committed_before');
|
||||
insert into t9 values ('node2_committed_before');
|
||||
insert into t9 values ('node2_committed_before');
|
||||
insert into t8 values ('node2_committed_before');
|
||||
insert into t8 values ('node2_committed_before');
|
||||
insert into t8 values ('node2_committed_before');
|
||||
insert into t8 values ('node2_committed_before');
|
||||
insert into t8 values ('node2_committed_before');
|
||||
insert into t7 values ('node2_committed_before');
|
||||
insert into t7 values ('node2_committed_before');
|
||||
insert into t7 values ('node2_committed_before');
|
||||
insert into t7 values ('node2_committed_before');
|
||||
insert into t7 values ('node2_committed_before');
|
||||
insert into t6 values ('node2_committed_before');
|
||||
insert into t6 values ('node2_committed_before');
|
||||
insert into t6 values ('node2_committed_before');
|
||||
insert into t6 values ('node2_committed_before');
|
||||
insert into t6 values ('node2_committed_before');
|
||||
insert into t5 values ('node2_committed_before');
|
||||
insert into t5 values ('node2_committed_before');
|
||||
insert into t5 values ('node2_committed_before');
|
||||
insert into t5 values ('node2_committed_before');
|
||||
insert into t5 values ('node2_committed_before');
|
||||
insert into t4 values ('node2_committed_before');
|
||||
insert into t4 values ('node2_committed_before');
|
||||
insert into t4 values ('node2_committed_before');
|
||||
insert into t4 values ('node2_committed_before');
|
||||
insert into t4 values ('node2_committed_before');
|
||||
insert into t3 values ('node2_committed_before');
|
||||
insert into t3 values ('node2_committed_before');
|
||||
insert into t3 values ('node2_committed_before');
|
||||
insert into t3 values ('node2_committed_before');
|
||||
insert into t3 values ('node2_committed_before');
|
||||
insert into t2 values ('node2_committed_before');
|
||||
insert into t2 values ('node2_committed_before');
|
||||
insert into t2 values ('node2_committed_before');
|
||||
insert into t2 values ('node2_committed_before');
|
||||
insert into t2 values ('node2_committed_before');
|
||||
insert into t1 values ('node2_committed_before');
|
||||
insert into t1 values ('node2_committed_before');
|
||||
insert into t1 values ('node2_committed_before');
|
||||
insert into t1 values ('node2_committed_before');
|
||||
insert into t1 values ('node2_committed_before');
|
||||
COMMIT;
|
||||
Shutting down server ...
|
||||
Cleaning var directory ...
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
insert into t9 values ('node1_committed_during');
|
||||
insert into t9 values ('node1_committed_during');
|
||||
insert into t9 values ('node1_committed_during');
|
||||
insert into t9 values ('node1_committed_during');
|
||||
insert into t9 values ('node1_committed_during');
|
||||
insert into t8 values ('node1_committed_during');
|
||||
insert into t8 values ('node1_committed_during');
|
||||
insert into t8 values ('node1_committed_during');
|
||||
insert into t8 values ('node1_committed_during');
|
||||
insert into t8 values ('node1_committed_during');
|
||||
insert into t7 values ('node1_committed_during');
|
||||
insert into t7 values ('node1_committed_during');
|
||||
insert into t7 values ('node1_committed_during');
|
||||
insert into t7 values ('node1_committed_during');
|
||||
insert into t7 values ('node1_committed_during');
|
||||
insert into t6 values ('node1_committed_during');
|
||||
insert into t6 values ('node1_committed_during');
|
||||
insert into t6 values ('node1_committed_during');
|
||||
insert into t6 values ('node1_committed_during');
|
||||
insert into t6 values ('node1_committed_during');
|
||||
insert into t5 values ('node1_committed_during');
|
||||
insert into t5 values ('node1_committed_during');
|
||||
insert into t5 values ('node1_committed_during');
|
||||
insert into t5 values ('node1_committed_during');
|
||||
insert into t5 values ('node1_committed_during');
|
||||
insert into t4 values ('node1_committed_during');
|
||||
insert into t4 values ('node1_committed_during');
|
||||
insert into t4 values ('node1_committed_during');
|
||||
insert into t4 values ('node1_committed_during');
|
||||
insert into t4 values ('node1_committed_during');
|
||||
insert into t3 values ('node1_committed_during');
|
||||
insert into t3 values ('node1_committed_during');
|
||||
insert into t3 values ('node1_committed_during');
|
||||
insert into t3 values ('node1_committed_during');
|
||||
insert into t3 values ('node1_committed_during');
|
||||
insert into t2 values ('node1_committed_during');
|
||||
insert into t2 values ('node1_committed_during');
|
||||
insert into t2 values ('node1_committed_during');
|
||||
insert into t2 values ('node1_committed_during');
|
||||
insert into t2 values ('node1_committed_during');
|
||||
insert into t1 values ('node1_committed_during');
|
||||
insert into t1 values ('node1_committed_during');
|
||||
insert into t1 values ('node1_committed_during');
|
||||
insert into t1 values ('node1_committed_during');
|
||||
insert into t1 values ('node1_committed_during');
|
||||
COMMIT;
|
||||
START TRANSACTION;
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
insert into t9 values ('node1_to_be_rollbacked_after');
|
||||
insert into t9 values ('node1_to_be_rollbacked_after');
|
||||
insert into t9 values ('node1_to_be_rollbacked_after');
|
||||
insert into t9 values ('node1_to_be_rollbacked_after');
|
||||
insert into t9 values ('node1_to_be_rollbacked_after');
|
||||
insert into t8 values ('node1_to_be_rollbacked_after');
|
||||
insert into t8 values ('node1_to_be_rollbacked_after');
|
||||
insert into t8 values ('node1_to_be_rollbacked_after');
|
||||
insert into t8 values ('node1_to_be_rollbacked_after');
|
||||
insert into t8 values ('node1_to_be_rollbacked_after');
|
||||
insert into t7 values ('node1_to_be_rollbacked_after');
|
||||
insert into t7 values ('node1_to_be_rollbacked_after');
|
||||
insert into t7 values ('node1_to_be_rollbacked_after');
|
||||
insert into t7 values ('node1_to_be_rollbacked_after');
|
||||
insert into t7 values ('node1_to_be_rollbacked_after');
|
||||
insert into t6 values ('node1_to_be_rollbacked_after');
|
||||
insert into t6 values ('node1_to_be_rollbacked_after');
|
||||
insert into t6 values ('node1_to_be_rollbacked_after');
|
||||
insert into t6 values ('node1_to_be_rollbacked_after');
|
||||
insert into t6 values ('node1_to_be_rollbacked_after');
|
||||
insert into t5 values ('node1_to_be_rollbacked_after');
|
||||
insert into t5 values ('node1_to_be_rollbacked_after');
|
||||
insert into t5 values ('node1_to_be_rollbacked_after');
|
||||
insert into t5 values ('node1_to_be_rollbacked_after');
|
||||
insert into t5 values ('node1_to_be_rollbacked_after');
|
||||
insert into t4 values ('node1_to_be_rollbacked_after');
|
||||
insert into t4 values ('node1_to_be_rollbacked_after');
|
||||
insert into t4 values ('node1_to_be_rollbacked_after');
|
||||
insert into t4 values ('node1_to_be_rollbacked_after');
|
||||
insert into t4 values ('node1_to_be_rollbacked_after');
|
||||
insert into t3 values ('node1_to_be_rollbacked_after');
|
||||
insert into t3 values ('node1_to_be_rollbacked_after');
|
||||
insert into t3 values ('node1_to_be_rollbacked_after');
|
||||
insert into t3 values ('node1_to_be_rollbacked_after');
|
||||
insert into t3 values ('node1_to_be_rollbacked_after');
|
||||
insert into t2 values ('node1_to_be_rollbacked_after');
|
||||
insert into t2 values ('node1_to_be_rollbacked_after');
|
||||
insert into t2 values ('node1_to_be_rollbacked_after');
|
||||
insert into t2 values ('node1_to_be_rollbacked_after');
|
||||
insert into t2 values ('node1_to_be_rollbacked_after');
|
||||
insert into t1 values ('node1_to_be_rollbacked_after');
|
||||
insert into t1 values ('node1_to_be_rollbacked_after');
|
||||
insert into t1 values ('node1_to_be_rollbacked_after');
|
||||
insert into t1 values ('node1_to_be_rollbacked_after');
|
||||
insert into t1 values ('node1_to_be_rollbacked_after');
|
||||
Starting server ...
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
COMMIT;
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t9 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t8 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t7 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t6 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t5 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t4 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t3 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t2 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
insert into t1 values ('node1_to_be_committed_after');
|
||||
COMMIT;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
insert into t9 values ('node1_committed_after');
|
||||
insert into t9 values ('node1_committed_after');
|
||||
insert into t9 values ('node1_committed_after');
|
||||
insert into t9 values ('node1_committed_after');
|
||||
insert into t9 values ('node1_committed_after');
|
||||
insert into t8 values ('node1_committed_after');
|
||||
insert into t8 values ('node1_committed_after');
|
||||
insert into t8 values ('node1_committed_after');
|
||||
insert into t8 values ('node1_committed_after');
|
||||
insert into t8 values ('node1_committed_after');
|
||||
insert into t7 values ('node1_committed_after');
|
||||
insert into t7 values ('node1_committed_after');
|
||||
insert into t7 values ('node1_committed_after');
|
||||
insert into t7 values ('node1_committed_after');
|
||||
insert into t7 values ('node1_committed_after');
|
||||
insert into t6 values ('node1_committed_after');
|
||||
insert into t6 values ('node1_committed_after');
|
||||
insert into t6 values ('node1_committed_after');
|
||||
insert into t6 values ('node1_committed_after');
|
||||
insert into t6 values ('node1_committed_after');
|
||||
insert into t5 values ('node1_committed_after');
|
||||
insert into t5 values ('node1_committed_after');
|
||||
insert into t5 values ('node1_committed_after');
|
||||
insert into t5 values ('node1_committed_after');
|
||||
insert into t5 values ('node1_committed_after');
|
||||
insert into t4 values ('node1_committed_after');
|
||||
insert into t4 values ('node1_committed_after');
|
||||
insert into t4 values ('node1_committed_after');
|
||||
insert into t4 values ('node1_committed_after');
|
||||
insert into t4 values ('node1_committed_after');
|
||||
insert into t3 values ('node1_committed_after');
|
||||
insert into t3 values ('node1_committed_after');
|
||||
insert into t3 values ('node1_committed_after');
|
||||
insert into t3 values ('node1_committed_after');
|
||||
insert into t3 values ('node1_committed_after');
|
||||
insert into t2 values ('node1_committed_after');
|
||||
insert into t2 values ('node1_committed_after');
|
||||
insert into t2 values ('node1_committed_after');
|
||||
insert into t2 values ('node1_committed_after');
|
||||
insert into t2 values ('node1_committed_after');
|
||||
insert into t1 values ('node1_committed_after');
|
||||
insert into t1 values ('node1_committed_after');
|
||||
insert into t1 values ('node1_committed_after');
|
||||
insert into t1 values ('node1_committed_after');
|
||||
insert into t1 values ('node1_committed_after');
|
||||
COMMIT;
|
||||
ROLLBACK;
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t2;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t3;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t4;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t5;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t6;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t7;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t8;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t9;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT * FROM t1;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t2;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t3;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t4;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t5;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t6;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t7;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t8;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t9;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
COMMIT;
|
||||
SET AUTOCOMMIT=ON;
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t2;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t3;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t4;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t5;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t6;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t7;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t8;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT COUNT(*) FROM t9;
|
||||
COUNT(*)
|
||||
30
|
||||
SELECT * FROM t1;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t2;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t3;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t4;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t5;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t6;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t7;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t8;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
SELECT * FROM t9;
|
||||
f1
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node1_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node2_committed_before
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_committed_during
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_to_be_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
node1_committed_after
|
||||
COMMIT;
|
||||
DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
COMMIT;
|
||||
SET AUTOCOMMIT=ON;
|
|
@ -0,0 +1,16 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld]
|
||||
wsrep_sst_method=mariabackup
|
||||
wsrep_sst_auth="root:"
|
||||
wsrep_debug=ON
|
||||
|
||||
[mysqld.1]
|
||||
wsrep_provider_options='base_port=@mysqld.1.#galera_port;gcache.size=1;pc.ignore_sb=true'
|
||||
|
||||
[mysqld.2]
|
||||
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=1;pc.ignore_sb=true'
|
||||
|
||||
[sst]
|
||||
transferfmt=@ENV.MTR_GALERA_TFMT
|
||||
streamfmt=xbstream
|
|
@ -0,0 +1,2 @@
|
|||
--innodb-file-format='Barracuda'
|
||||
--innodb-file-per-table=ON
|
|
@ -0,0 +1,218 @@
|
|||
--source include/big_test.inc
|
||||
--source include/galera_cluster.inc
|
||||
--source include/innodb_encrypt_tables.inc
|
||||
--source include/have_mariabackup.inc
|
||||
|
||||
--echo Performing State Transfer on a server that starts from a clean var directory
|
||||
--echo This is accomplished by shutting down node #2 and removing its var directory before restarting it
|
||||
|
||||
--connection node_1
|
||||
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (f1 CHAR(255)) ENGINE=InnoDB PAGE_COMPRESSED=1;
|
||||
CREATE TABLE t3 (f1 CHAR(255)) ENGINE=InnoDB PAGE_COMPRESSED=1 ENCRYPTED=NO;
|
||||
CREATE TABLE t4 (f1 CHAR(255)) ENGINE=InnoDB PAGE_COMPRESSED=1 ENCRYPTED=YES;
|
||||
CREATE TABLE t5 (f1 CHAR(255)) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
|
||||
CREATE TABLE t6 (f1 CHAR(255)) ENGINE=InnoDB ROW_FORMAT=COMPRESSED ENCRYPTED=NO;
|
||||
CREATE TABLE t7 (f1 CHAR(255)) ENGINE=InnoDB ROW_FORMAT=COMPRESSED ENCRYPTED=YES;
|
||||
CREATE TABLE t8 (f1 CHAR(255)) ENGINE=InnoDB ENCRYPTED=NO;
|
||||
CREATE TABLE t9 (f1 CHAR(255)) ENGINE=InnoDB ENCRYPTED=YES;
|
||||
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
let $tables = 9;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node1_committed_before');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
COMMIT;
|
||||
|
||||
--connection node_2
|
||||
--let $wait_condition = SELECT COUNT(*) = 5 FROM t7;
|
||||
--source include/wait_condition.inc
|
||||
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
let $tables = 9;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node2_committed_before');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
COMMIT;
|
||||
|
||||
--echo Shutting down server ...
|
||||
--source include/shutdown_mysqld.inc
|
||||
|
||||
--connection node_1
|
||||
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--echo Cleaning var directory ...
|
||||
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/mtr
|
||||
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/performance_schema
|
||||
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/test
|
||||
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/mysql
|
||||
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data
|
||||
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
let $tables = 9;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node1_committed_during');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
COMMIT;
|
||||
|
||||
START TRANSACTION;
|
||||
let $tables = 9;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node1_to_be_committed_after');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
|
||||
--connect node_1a_galera_st_clean_slave, 127.0.0.1, root, , test, $NODE_MYPORT_1
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
let $tables = 9;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node1_to_be_rollbacked_after');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
|
||||
--connection node_2
|
||||
--echo Starting server ...
|
||||
--source include/start_mysqld.inc
|
||||
|
||||
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
|
||||
--source include/wait_condition.inc
|
||||
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node2_committed_after');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
COMMIT;
|
||||
|
||||
--connection node_1
|
||||
let $tables = 9;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node1_to_be_committed_after');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
COMMIT;
|
||||
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
let $tables = 9;
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node1_committed_after');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
COMMIT;
|
||||
|
||||
--connection node_1a_galera_st_clean_slave
|
||||
while ($tables)
|
||||
{
|
||||
let $rows = 5;
|
||||
while($rows)
|
||||
{
|
||||
eval insert into t$tables values ('node1_to_be_rollbacked_after');
|
||||
dec $rows;
|
||||
}
|
||||
dec $tables;
|
||||
}
|
||||
ROLLBACK;
|
||||
|
||||
SELECT COUNT(*) FROM t1;
|
||||
SELECT COUNT(*) FROM t2;
|
||||
SELECT COUNT(*) FROM t3;
|
||||
SELECT COUNT(*) FROM t4;
|
||||
SELECT COUNT(*) FROM t5;
|
||||
SELECT COUNT(*) FROM t6;
|
||||
SELECT COUNT(*) FROM t7;
|
||||
SELECT COUNT(*) FROM t8;
|
||||
SELECT COUNT(*) FROM t9;
|
||||
SELECT * FROM t1;
|
||||
SELECT * FROM t2;
|
||||
SELECT * FROM t3;
|
||||
SELECT * FROM t4;
|
||||
SELECT * FROM t5;
|
||||
SELECT * FROM t6;
|
||||
SELECT * FROM t7;
|
||||
SELECT * FROM t8;
|
||||
SELECT * FROM t9;
|
||||
COMMIT;
|
||||
SET AUTOCOMMIT=ON;
|
||||
|
||||
--connection node_1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
SELECT COUNT(*) FROM t2;
|
||||
SELECT COUNT(*) FROM t3;
|
||||
SELECT COUNT(*) FROM t4;
|
||||
SELECT COUNT(*) FROM t5;
|
||||
SELECT COUNT(*) FROM t6;
|
||||
SELECT COUNT(*) FROM t7;
|
||||
SELECT COUNT(*) FROM t8;
|
||||
SELECT COUNT(*) FROM t9;
|
||||
SELECT * FROM t1;
|
||||
SELECT * FROM t2;
|
||||
SELECT * FROM t3;
|
||||
SELECT * FROM t4;
|
||||
SELECT * FROM t5;
|
||||
SELECT * FROM t6;
|
||||
SELECT * FROM t7;
|
||||
SELECT * FROM t8;
|
||||
SELECT * FROM t9;
|
||||
COMMIT;
|
||||
|
||||
DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
COMMIT;
|
||||
SET AUTOCOMMIT=ON;
|
Loading…
Add table
Reference in a new issue