Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8324e5e8
Commit
8324e5e8
authored
Nov 21, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17771: Add Galera ist and sst tests using mariabackup
Add test case for encrypted and page compressed tables.
parent
41fa9a59
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1239 additions
and
0 deletions
+1239
-0
mysql-test/include/innodb_encrypt_tables.combinations
mysql-test/include/innodb_encrypt_tables.combinations
+14
-0
mysql-test/include/innodb_encrypt_tables.inc
mysql-test/include/innodb_encrypt_tables.inc
+4
-0
mysql-test/suite/galera/r/galera_sst_mariabackup_table_options.result
...uite/galera/r/galera_sst_mariabackup_table_options.result
+985
-0
mysql-test/suite/galera/t/galera_sst_mariabackup_table_options.cnf
...t/suite/galera/t/galera_sst_mariabackup_table_options.cnf
+16
-0
mysql-test/suite/galera/t/galera_sst_mariabackup_table_options.opt
...t/suite/galera/t/galera_sst_mariabackup_table_options.opt
+2
-0
mysql-test/suite/galera/t/galera_sst_mariabackup_table_options.test
.../suite/galera/t/galera_sst_mariabackup_table_options.test
+218
-0
No files found.
mysql-test/include/innodb_encrypt_tables.combinations
0 → 100644
View file @
8324e5e8
[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
mysql-test/include/innodb_encrypt_tables.inc
0 → 100644
View file @
8324e5e8
# The goal of including this file is to enable innodb_encrypt_tables combinations
# (see include/innodb_encrypt_tables.combinations)
--
source
include
/
have_innodb
.
inc
mysql-test/suite/galera/r/galera_sst_mariabackup_table_options.result
0 → 100644
View file @
8324e5e8
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;
mysql-test/suite/galera/t/galera_sst_mariabackup_table_options.cnf
0 → 100644
View file @
8324e5e8
!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
mysql-test/suite/galera/t/galera_sst_mariabackup_table_options.opt
0 → 100644
View file @
8324e5e8
--innodb-file-format='Barracuda'
--innodb-file-per-table=ON
mysql-test/suite/galera/t/galera_sst_mariabackup_table_options.test
0 → 100644
View file @
8324e5e8
--
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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment