Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/10.1' into 10.2
- Loading branch information
Showing
26 changed files
with
2,250 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
mysql-test/suite/galera/r/galera_autoinc_sst_mariabackup.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB; | ||
CREATE PROCEDURE p1 () | ||
BEGIN | ||
DECLARE x INT DEFAULT 1; | ||
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN END; | ||
WHILE 1 DO | ||
INSERT INTO t1 VALUES (DEFAULT); | ||
COMMIT; | ||
END WHILE; | ||
END| | ||
CALL p1();; | ||
CALL p1();; | ||
Killing server ... | ||
INSERT INTO t1 VALUES (DEFAULT); | ||
INSERT INTO t1 VALUES (DEFAULT); | ||
Got one of the listed errors | ||
Got one of the listed errors | ||
count_equal | ||
1 | ||
CALL mtr.add_suppression("WSREP: Action message in non-primary configuration from member 0"); | ||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
VARIABLE_VALUE | ||
2 | ||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
VARIABLE_VALUE = 2 | ||
1 | ||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
VARIABLE_VALUE | ||
2 | ||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
VARIABLE_VALUE = 2 | ||
1 | ||
DROP PROCEDURE p1; | ||
DROP TABLE t1; | ||
CALL mtr.add_suppression("gcs_caused\\(\\) returned -1 \\(Operation not permitted\\)"); | ||
CALL mtr.add_suppression("WSREP: Action message in non-primary configuration from member 0"); |
103 changes: 103 additions & 0 deletions
103
mysql-test/suite/galera/r/galera_ist_mariabackup,debug.rdiff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
--- r/galera_ist_mariabackup.result 2018-11-19 15:15:21.093874145 +0200 | ||
+++ r/galera_ist_mariabackup.reject 2018-11-19 16:25:52.220523327 +0200 | ||
@@ -259,3 +259,100 @@ | ||
DROP TABLE t1; | ||
COMMIT; | ||
SET AUTOCOMMIT=ON; | ||
+Performing State Transfer on a server that has been killed and restarted | ||
+while a DDL was in progress on it | ||
+CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB; | ||
+SET AUTOCOMMIT=OFF; | ||
+START TRANSACTION; | ||
+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'); | ||
+START TRANSACTION; | ||
+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; | ||
+SET GLOBAL debug_dbug = 'd,sync.alter_opened_table'; | ||
+ALTER TABLE t1 ADD COLUMN f2 INTEGER; | ||
+SET wsrep_sync_wait = 0; | ||
+Killing server ... | ||
+SET AUTOCOMMIT=OFF; | ||
+START TRANSACTION; | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
+COMMIT; | ||
+START TRANSACTION; | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+SET AUTOCOMMIT=OFF; | ||
+START TRANSACTION; | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+Performing --wsrep-recover ... | ||
+Starting server ... | ||
+Using --wsrep-start-position when starting mysqld ... | ||
+SET AUTOCOMMIT=OFF; | ||
+START TRANSACTION; | ||
+INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
+COMMIT; | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
+COMMIT; | ||
+SET AUTOCOMMIT=OFF; | ||
+START TRANSACTION; | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
+COMMIT; | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
+ROLLBACK; | ||
+SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; | ||
+COUNT(*) = 2 | ||
+1 | ||
+SELECT COUNT(*) = 35 FROM t1; | ||
+COUNT(*) = 35 | ||
+1 | ||
+SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1; | ||
+COUNT(*) = 0 | ||
+1 | ||
+COMMIT; | ||
+SET AUTOCOMMIT=ON; | ||
+SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; | ||
+COUNT(*) = 2 | ||
+1 | ||
+SELECT COUNT(*) = 35 FROM t1; | ||
+COUNT(*) = 35 | ||
+1 | ||
+SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1; | ||
+COUNT(*) = 0 | ||
+1 | ||
+DROP TABLE t1; | ||
+COMMIT; | ||
+SET AUTOCOMMIT=ON; | ||
+SET GLOBAL debug_dbug = $debug_orig; |
Oops, something went wrong.