mirror of
https://github.com/MariaDB/server.git
synced 2025-09-13 13:47:59 +03:00
84 lines
3.4 KiB
Plaintext
84 lines
3.4 KiB
Plaintext
connection node_2;
|
|
connection node_1;
|
|
Setting SST method to mysqldump ...
|
|
call mtr.add_suppression("WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to '127\\.0\\.0\\.1'");
|
|
call mtr.add_suppression("Failed to load slave replication state from table mysql\\.gtid_slave_pos");
|
|
connection node_1;
|
|
CREATE USER 'sst';
|
|
GRANT ALL PRIVILEGES ON *.* TO 'sst';
|
|
SET GLOBAL wsrep_sst_auth = 'sst:';
|
|
connection node_2;
|
|
SET GLOBAL wsrep_sst_method = 'mysqldump';
|
|
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
|
|
connection node_1;
|
|
connection node_2;
|
|
connection node_3;
|
|
connection node_1;
|
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
|
connection node_2;
|
|
SET SESSION wsrep_on=OFF;
|
|
ALTER TABLE t1 ADD PRIMARY KEY (f1);
|
|
SET SESSION wsrep_on=ON;
|
|
connection node_1;
|
|
ALTER TABLE t1 LOCK=SHARED, DROP PRIMARY KEY;
|
|
ERROR 42000: Can't DROP INDEX `PRIMARY`; check that it exists
|
|
connection node_1;
|
|
SELECT VARIABLE_VALUE AS expect_Primary FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
expect_Primary
|
|
Primary
|
|
connection node_3;
|
|
SELECT VARIABLE_VALUE AS expect_2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
expect_2
|
|
2
|
|
SELECT VARIABLE_VALUE AS expect_Primary FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
expect_Primary
|
|
Primary
|
|
connection node_2;
|
|
SET SESSION wsrep_on=OFF;
|
|
SELECT VARIABLE_VALUE AS expect_Disconnected FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
expect_Disconnected
|
|
Disconnected
|
|
SET SESSION wsrep_on=ON;
|
|
SELECT VARIABLE_VALUE AS expect_3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
expect_3
|
|
3
|
|
SELECT VARIABLE_VALUE AS expect_Primary FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
expect_Primary
|
|
Primary
|
|
connection node_1;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`f1` int(11) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
|
connection node_2;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`f1` int(11) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
|
connection node_3;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`f1` int(11) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
|
DROP TABLE t1;
|
|
CALL mtr.add_suppression("Slave SQL: Error 'Can't DROP 'PRIMARY'; check that column/key exists'");
|
|
connection node_1;
|
|
connection node_1;
|
|
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");
|
|
DROP USER sst;
|
|
connection node_2;
|
|
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");
|
|
CALL mtr.add_suppression("InnoDB: Error: Table \"mysql\"\\.\"innodb_index_stats\" not found");
|
|
CALL mtr.add_suppression("Can't open and lock time zone table");
|
|
CALL mtr.add_suppression("Can't open and lock privilege tables");
|
|
CALL mtr.add_suppression("Info table is not ready to be used");
|
|
CALL mtr.add_suppression("Native table .* has the wrong structure");
|
|
CALL mtr.add_suppression("Table 'mysql\\.gtid_slave_pos' doesn't exist");
|
|
connection node_2;
|
|
# restart
|
|
CALL mtr.add_suppression("WSREP: .+ is inconsistent with group");
|
|
connection node_1;
|