mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
403 lines
15 KiB
Text
403 lines
15 KiB
Text
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';
|
|
connection node_1;
|
|
connection node_2;
|
|
Performing State Transfer on a server that has been temporarily disconnected
|
|
connection node_1;
|
|
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');
|
|
COMMIT;
|
|
connection node_2;
|
|
SET AUTOCOMMIT=OFF;
|
|
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;
|
|
Unloading wsrep provider ...
|
|
SET GLOBAL wsrep_provider = 'none';
|
|
connection node_1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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 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');
|
|
connect node_1a_galera_st_disconnect_slave, 127.0.0.1, root, , test, $NODE_MYPORT_1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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');
|
|
connection node_2;
|
|
Loading wsrep provider ...
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
COMMIT;
|
|
connection node_1;
|
|
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 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;
|
|
connection node_1a_galera_st_disconnect_slave;
|
|
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');
|
|
ROLLBACK;
|
|
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;
|
|
connection node_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;
|
|
Performing State Transfer on a server that has been shut down cleanly and restarted
|
|
connection node_1;
|
|
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');
|
|
COMMIT;
|
|
connection node_2;
|
|
SET AUTOCOMMIT=OFF;
|
|
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;
|
|
Shutting down server ...
|
|
connection node_1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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 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');
|
|
connect node_1a_galera_st_shutdown_slave, 127.0.0.1, root, , test, $NODE_MYPORT_1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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');
|
|
connection node_2;
|
|
Starting server ...
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
COMMIT;
|
|
connection node_1;
|
|
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 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;
|
|
connection node_1a_galera_st_shutdown_slave;
|
|
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');
|
|
ROLLBACK;
|
|
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;
|
|
connection node_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;
|
|
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
|
|
connection node_1;
|
|
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');
|
|
COMMIT;
|
|
connection node_2;
|
|
SET AUTOCOMMIT=OFF;
|
|
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;
|
|
Shutting down server ...
|
|
connection node_1;
|
|
Cleaning var directory ...
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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 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');
|
|
connect node_1a_galera_st_clean_slave, 127.0.0.1, root, , test, $NODE_MYPORT_1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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');
|
|
connection node_2;
|
|
Starting server ...
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
COMMIT;
|
|
connection node_1;
|
|
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 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;
|
|
connection node_1a_galera_st_clean_slave;
|
|
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');
|
|
ROLLBACK;
|
|
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;
|
|
connection node_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;
|
|
Performing State Transfer on a server that has been killed and restarted
|
|
connection node_1;
|
|
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');
|
|
COMMIT;
|
|
connection node_2;
|
|
SET AUTOCOMMIT=OFF;
|
|
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;
|
|
Killing server ...
|
|
connection node_1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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 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');
|
|
connect node_1a_galera_st_kill_slave, 127.0.0.1, root, , test, $NODE_MYPORT_1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
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');
|
|
connection node_2;
|
|
Performing --wsrep-recover ...
|
|
Starting server ...
|
|
Using --wsrep-start-position when starting mysqld ...
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
INSERT INTO t1 VALUES ('node2_committed_after');
|
|
COMMIT;
|
|
connection node_1;
|
|
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 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;
|
|
connection node_1a_galera_st_kill_slave;
|
|
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');
|
|
ROLLBACK;
|
|
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;
|
|
connection node_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;
|
|
connection node_1;
|
|
CALL mtr.add_suppression("Slave SQL: Error 'The MySQL 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 MySQL 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");
|