| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
Setting SST method to mysqldump ... |
| 4 |
call mtr.add_suppression("WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to '127\\.0\\.0\\.1'"); |
| 5 |
call mtr.add_suppression("Failed to load slave replication state from table mysql\\.gtid_slave_pos"); |
| 6 |
connection node_1; |
| 7 |
CREATE USER 'sst'; |
| 8 |
GRANT ALL PRIVILEGES ON *.* TO 'sst'; |
| 9 |
SET GLOBAL wsrep_sst_auth = 'sst:'; |
| 10 |
connection node_2; |
| 11 |
SET GLOBAL wsrep_sst_method = 'mysqldump'; |
| 12 |
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3; |
| 13 |
connection node_1; |
| 14 |
connection node_2; |
| 15 |
connection node_3; |
| 16 |
connection node_1; |
| 17 |
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
| 18 |
connection node_2; |
| 19 |
SET SESSION wsrep_on=OFF; |
| 20 |
ALTER TABLE t1 ADD PRIMARY KEY (f1); |
| 21 |
SET SESSION wsrep_on=ON; |
| 22 |
connection node_1; |
| 23 |
ALTER TABLE t1 LOCK=SHARED, DROP PRIMARY KEY; |
| 24 |
ERROR 42000: Can't DROP INDEX `PRIMARY`; check that it exists |
| 25 |
connection node_1; |
| 26 |
SELECT VARIABLE_VALUE AS expect_Primary FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'; |
| 27 |
expect_Primary |
| 28 |
Primary |
| 29 |
connection node_3; |
| 30 |
SELECT VARIABLE_VALUE AS expect_2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 31 |
expect_2 |
| 32 |
2 |
| 33 |
SELECT VARIABLE_VALUE AS expect_Primary FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'; |
| 34 |
expect_Primary |
| 35 |
Primary |
| 36 |
connection node_2; |
| 37 |
SET SESSION wsrep_on=OFF; |
| 38 |
SELECT VARIABLE_VALUE AS expect_Disconnected FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'; |
| 39 |
expect_Disconnected |
| 40 |
Disconnected |
| 41 |
SET SESSION wsrep_on=ON; |
| 42 |
SELECT VARIABLE_VALUE AS expect_3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 43 |
expect_3 |
| 44 |
3 |
| 45 |
SELECT VARIABLE_VALUE AS expect_Primary FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'; |
| 46 |
expect_Primary |
| 47 |
Primary |
| 48 |
connection node_1; |
| 49 |
SHOW CREATE TABLE t1; |
| 50 |
Table Create Table |
| 51 |
t1 CREATE TABLE `t1` ( |
| 52 |
`f1` int(11) DEFAULT NULL |
| 53 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci |
| 54 |
connection node_2; |
| 55 |
SHOW CREATE TABLE t1; |
| 56 |
Table Create Table |
| 57 |
t1 CREATE TABLE `t1` ( |
| 58 |
`f1` int(11) DEFAULT NULL |
| 59 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci |
| 60 |
connection node_3; |
| 61 |
SHOW CREATE TABLE t1; |
| 62 |
Table Create Table |
| 63 |
t1 CREATE TABLE `t1` ( |
| 64 |
`f1` int(11) DEFAULT NULL |
| 65 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci |
| 66 |
DROP TABLE t1; |
| 67 |
CALL mtr.add_suppression("Slave SQL: Error 'Can't DROP 'PRIMARY'; check that column/key exists'"); |
| 68 |
connection node_1; |
| 69 |
connection node_1; |
| 70 |
CALL mtr.add_suppression("Slave SQL: Error 'The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement' on query"); |
| 71 |
DROP USER sst; |
| 72 |
connection node_2; |
| 73 |
CALL mtr.add_suppression("Slave SQL: Error 'The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement' on query"); |
| 74 |
CALL mtr.add_suppression("InnoDB: Error: Table \"mysql\"\\.\"innodb_index_stats\" not found"); |
| 75 |
CALL mtr.add_suppression("Can't open and lock time zone table"); |
| 76 |
CALL mtr.add_suppression("Can't open and lock privilege tables"); |
| 77 |
CALL mtr.add_suppression("Info table is not ready to be used"); |
| 78 |
CALL mtr.add_suppression("Native table .* has the wrong structure"); |
| 79 |
CALL mtr.add_suppression("Table 'mysql\\.gtid_slave_pos' doesn't exist"); |
| 80 |
connection node_2; |
| 81 |
# restart |
| 82 |
CALL mtr.add_suppression("WSREP: .+ is inconsistent with group"); |
| 83 |
connection node_1; |