mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@@ -7,13 +7,20 @@ CREATE TABLE t1 (a INT);
|
||||
FLUSH BINARY LOGS;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
connection master;
|
||||
# Shutdown master
|
||||
include/rpl_stop_server.inc [server_number=1]
|
||||
# Move the master binlog files and the index file to a new place
|
||||
# Restart master with log-bin option set to the new path
|
||||
# Master has restarted successfully
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
connection master;
|
||||
# Create the master-bin.index file with the old format
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
connection master;
|
||||
# Shutdown master
|
||||
include/rpl_stop_server.inc [server_number=1]
|
||||
# Move back the master binlog files
|
||||
@@ -21,6 +28,9 @@ include/rpl_stop_server.inc [server_number=1]
|
||||
# Restart master with log-bin option set to default
|
||||
# Master has restarted successfully
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
connection master;
|
||||
connection slave;
|
||||
# stop slave
|
||||
include/stop_slave.inc
|
||||
include/rpl_stop_server.inc [server_number=2]
|
||||
|
@@ -9,6 +9,9 @@ ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1, 0);
|
||||
connection server_2;
|
||||
SET sql_log_bin=0;
|
||||
call mtr.add_suppression('Master command COM_REGISTER_SLAVE failed: failed registering on master, reconnecting to try again');
|
||||
SET sql_log_bin=1;
|
||||
include/stop_slave.inc
|
||||
CHANGE MASTER TO master_host = '127.0.0.1', master_port = MASTER_PORT,
|
||||
MASTER_USE_GTID=CURRENT_POS;
|
||||
|
@@ -43,7 +43,7 @@ FLUSH BINARY LOGS;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
|
||||
sync_slave_with_master;
|
||||
|
||||
--source include/stop_slave.inc
|
||||
#
|
||||
# Test on master
|
||||
#
|
||||
@@ -58,13 +58,15 @@ source include/rpl_stop_server.inc;
|
||||
--move_file $master_datadir/master-bin.index $tmpdir/master-bin.index
|
||||
|
||||
--echo # Restart master with log-bin option set to the new path
|
||||
--let $rpl_server_parameters=--log-bin=$tmpdir/master-bin
|
||||
--let $rpl_server_parameters=--log-bin=$tmpdir/master-bin --log-bin-index=$tmpdir/master-bin
|
||||
--let $keep_include_silent=1
|
||||
source include/rpl_start_server.inc;
|
||||
--let $keep_include_silent=0
|
||||
|
||||
--echo # Master has restarted successfully
|
||||
|
||||
--connection slave
|
||||
--source include/start_slave.inc
|
||||
--connection master
|
||||
#
|
||||
# Test master can handle old format with directory path in index file
|
||||
#
|
||||
@@ -85,7 +87,10 @@ if (!$is_windows)
|
||||
--disable_query_log
|
||||
source include/write_var_to_file.inc;
|
||||
--enable_query_log
|
||||
--sync_slave_with_master
|
||||
--source include/stop_slave.inc
|
||||
|
||||
--connection master
|
||||
--echo # Shutdown master
|
||||
--let $rpl_server_number=1
|
||||
source include/rpl_stop_server.inc;
|
||||
@@ -99,14 +104,17 @@ source include/rpl_stop_server.inc;
|
||||
--remove_file $tmpdir/master-bin.index
|
||||
|
||||
--echo # Restart master with log-bin option set to default
|
||||
--let $rpl_server_parameters=--log-bin=$master_datadir/master-bin
|
||||
--let $rpl_server_parameters=--log-bin=$master_datadir/master-bin --log-bin-index=$master_datadir/master-bin
|
||||
--let $keep_include_silent=1
|
||||
source include/rpl_start_server.inc;
|
||||
--let $keep_include_silent=0
|
||||
|
||||
--echo # Master has restarted successfully
|
||||
--connection slave
|
||||
--source include/start_slave.inc
|
||||
|
||||
connection slave;
|
||||
--connection master
|
||||
--sync_slave_with_master
|
||||
--echo # stop slave
|
||||
--source include/stop_slave.inc
|
||||
--let $rpl_server_number= 2
|
||||
|
@@ -21,6 +21,9 @@ INSERT INTO t1 VALUES (1, 0);
|
||||
|
||||
--connection server_2
|
||||
--sync_with_master
|
||||
SET sql_log_bin=0;
|
||||
call mtr.add_suppression('Master command COM_REGISTER_SLAVE failed: failed registering on master, reconnecting to try again');
|
||||
SET sql_log_bin=1;
|
||||
--source include/stop_slave.inc
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
eval CHANGE MASTER TO master_host = '127.0.0.1', master_port = $MASTER_MYPORT,
|
||||
|
@@ -10,7 +10,7 @@ call mtr.add_suppression("Master is configured to log replication events");
|
||||
|
||||
# If everything is okay, the test will end in several seconds; maybe a minute.
|
||||
# If the problem shows up, it will hang until testcase timeout is exceeded.
|
||||
--exec $MYSQL_SLAP --silent --socket=$SLAVE_MYSOCK -q "START SLAVE; STOP SLAVE; SHOW GLOBAL STATUS" -c 2 --number-of-queries=100 --create-schema=test
|
||||
--exec $MYSQL_SLAP --silent --host=127.0.0.1 -P $SLAVE_MYPORT -q "START SLAVE; STOP SLAVE; SHOW GLOBAL STATUS" -c 2 --number-of-queries=100 --create-schema=test
|
||||
|
||||
# All done.
|
||||
|
||||
|
Reference in New Issue
Block a user