1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-16 00:42:55 +03:00

MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it

This commit makes replicas crash-safe by default by changing the
Using_Gtid value to be Slave_Pos on a fresh slave start and after
RESET SLAVE is issued. If the primary server does not support GTIDs
(i.e., version < 10), the replica will fall back to Using_Gtid=No on
slave start and after RESET SLAVE.

The following additional informational messages/warnings are added:

 1. When Using_Gtid is automatically changed. That is, if RESET
SLAVE reverts Using_Gtid back to Slave_Pos, or Using_Gtid is
inferred to No from a CHANGE MASTER TO given with log coordinates
without MASTER_USE_GTID.
 2. If options are ignored in CHANGE MASTER TO. If CHANGE MASTER TO
is given with log coordinates, yet also specifies
MASTER_USE_GTID=Slave_Pos, a warning message is given that the log
coordinate options are ignored.

Additionally, an MTR macro has been added for RESET SLAVE,
reset_slave.inc, which provides modes/options for resetting a slave
in log coordinate or gtid modes. When in log coordinates mode, the
macro will execute CHANGE MASTER TO MASTER_USE_GTID=No after the
RESET SLAVE command. When in GTID mode, an extra parameter,
reset_slave_keep_gtid_state, can be set to reset or preserve the
value of gtid_slave_pos.

Reviewed By:
===========
Andrei Elkin <andrei.elkin@mariadb.com>
This commit is contained in:
Brandon Nesterenko
2022-05-23 14:14:00 -06:00
parent 8c2faad576
commit 5ab5ff08b0
167 changed files with 1404 additions and 344 deletions

View File

@ -62,7 +62,7 @@ if ($tmp)
--echo Master_Server_Id # --echo Master_Server_Id #
--echo Master_SSL_Crl # --echo Master_SSL_Crl #
--echo Master_SSL_Crlpath # --echo Master_SSL_Crlpath #
--echo Using_Gtid No --echo Using_Gtid Slave_Pos
--echo Gtid_IO_Pos # --echo Gtid_IO_Pos #
--echo Replicate_Do_Domain_Ids --echo Replicate_Do_Domain_Ids
--echo Replicate_Ignore_Domain_Ids --echo Replicate_Ignore_Domain_Ids

View File

@ -0,0 +1,58 @@
# ==== Purpose ====
#
# Reset the slave on the active connection
#
#
# ==== Usage ====
#
# [--let $master_use_gtid_option= NO]
# --source include/rpl_reset_slave.inc
#
# Parameters:
# $master_use_gtid_option
# Sets the context for the reset slave. When No, execute
# CHANGE MASTER TO MASTER_USE_GTID=No after the RESET SLAVE. When
# Slave_Pos, execute set gtid_slave_pos= "" after RESET SLAVE.
#
# $reset_slave_keep_gtid_state
# When master_use_gtid_option is Slave_Pos, this defines whether or not
# gtid_slave_pos will be reset as well. Accepted values are of boolean
# type. Default value is false.
#
--let $include_filename= reset_slave.inc
--source include/begin_include_file.inc
if (!$rpl_debug)
{
--disable_query_log
}
if (!$master_use_gtid_option)
{
--let $master_use_gtid_option= Slave_Pos
}
if (!$reset_slave_keep_gtid_state)
{
--let $reset_slave_keep_gtid_state=0
}
if (`SELECT strcmp("$master_use_gtid_option","Slave_Pos") != 0 AND strcmp("$master_use_gtid_option","No") != 0`)
{
die Invalid option provided as master_use_gtid_option, Slave_Pos or No are the only allowed options;
}
RESET SLAVE;
if (`SELECT strcmp("$master_use_gtid_option","Slave_Pos") = 0 AND NOT $reset_slave_keep_gtid_state`)
{
SET @@GLOBAL.gtid_slave_pos= "";
}
if (`SELECT strcmp("$master_use_gtid_option","No") = 0`)
{
CHANGE MASTER TO MASTER_USE_GTID=No;
}
--let $include_filename= reset_slave.inc
--source include/end_include_file.inc

View File

@ -225,7 +225,14 @@ if (!$rpl_skip_change_master)
{ {
--let $_rpl_master_log_pos= --let $_rpl_master_log_pos=
} }
eval CHANGE MASTER TO MASTER_HOST = '127.0.0.1', MASTER_PORT = $_rpl_port, MASTER_USER = 'root', MASTER_LOG_FILE = '$_rpl_master_log_file'$_rpl_master_log_pos, MASTER_CONNECT_RETRY = 1; if ($rpl_master_log_file)
{
eval CHANGE MASTER TO MASTER_HOST = '127.0.0.1', MASTER_PORT = $_rpl_port, MASTER_USER = 'root', MASTER_LOG_FILE = '$_rpl_master_log_file'$_rpl_master_log_pos, MASTER_CONNECT_RETRY = 1, MASTER_USE_GTID=NO;
}
if (!$rpl_master_log_file)
{
eval CHANGE MASTER TO MASTER_HOST = '127.0.0.1', MASTER_PORT = $_rpl_port, MASTER_USER = 'root', MASTER_CONNECT_RETRY=1;
}
} }
if ($_rpl_master == '') if ($_rpl_master == '')
{ {

View File

@ -90,7 +90,7 @@ while ($_rpl_server)
--source include/rpl_connection.inc --source include/rpl_connection.inc
# Clear Using_Gtid in SHOW SLAVE STATUS to keep check_testcase happy. # Clear Using_Gtid in SHOW SLAVE STATUS to keep check_testcase happy.
CHANGE MASTER TO master_log_file=''; CHANGE MASTER TO master_use_gtid=Slave_Pos;
--dec $_rpl_server --dec $_rpl_server
} }

View File

@ -63,13 +63,13 @@ while ($_rpl_server)
--let $rpl_connection_name= server_$_rpl_server --let $rpl_connection_name= server_$_rpl_server
--source include/rpl_connection.inc --source include/rpl_connection.inc
RESET MASTER;
# Check if this server is configured to have a master # Check if this server is configured to have a master
if (`SELECT SUBSTRING('$rpl_master_list', 1 + ($_rpl_server - 1) * $rpl_server_count_length, $rpl_server_count_length) != ''`) if (`SELECT SUBSTRING('$rpl_master_list', 1 + ($_rpl_server - 1) * $rpl_server_count_length, $rpl_server_count_length) != ''`)
{ {
--source include/stop_slave.inc --source include/stop_slave.inc
RESET SLAVE; --source include/reset_slave.inc
} }
RESET MASTER;
--dec $_rpl_server --dec $_rpl_server
} }

View File

@ -100,7 +100,7 @@ RESET SLAVE;
--let $_fake_old_master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1) --let $_fake_old_master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1)
# Setup replication from existing relay log. # Setup replication from existing relay log.
eval CHANGE MASTER TO MASTER_HOST='dummy.localdomain', RELAY_LOG_FILE='$_fake_filename-fake.000001', RELAY_LOG_POS=4; eval CHANGE MASTER TO MASTER_HOST='dummy.localdomain', RELAY_LOG_FILE='$_fake_filename-fake.000001', RELAY_LOG_POS=4, MASTER_USE_GTID=NO;
--let $include_filename= setup_fake_relay_log.inc --let $include_filename= setup_fake_relay_log.inc
--source include/end_include_file.inc --source include/end_include_file.inc

View File

@ -11,7 +11,8 @@ DROP TABLE IF EXISTS t1;
sync_slave_with_master; sync_slave_with_master;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --let $master_use_gtid_option= No
--source include/reset_slave.inc
eval $test_table_slave; eval $test_table_slave;
connection master; connection master;
@ -29,7 +30,7 @@ START SLAVE;
# The following should be 0 # The following should be 0
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
connection master; connection master;
RESET MASTER; RESET MASTER;

View File

@ -12,7 +12,7 @@ include/rpl_start_server.inc [server_number=1]
connection slave; connection slave;
RESET SLAVE; RESET SLAVE;
RESET MASTER; RESET MASTER;
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4; CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no;
include/start_slave.inc include/start_slave.inc
DESC t1; DESC t1;
Field Type Null Key Default Extra Field Type Null Key Default Extra

View File

@ -36,7 +36,7 @@
RESET SLAVE; RESET SLAVE;
RESET MASTER; RESET MASTER;
--replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1 --replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1
eval CHANGE MASTER TO master_host='127.0.0.1', master_port=$SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4; eval CHANGE MASTER TO master_host='127.0.0.1', master_port=$SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no;
--source include/start_slave.inc --source include/start_slave.inc
--sync_with_master --sync_with_master
DESC t1; DESC t1;

View File

@ -4,6 +4,11 @@
include/rpl_init.inc [topology=1->2] include/rpl_init.inc [topology=1->2]
connection server_2; connection server_2;
include/stop_slave.inc include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection server_1;
connection server_2;
include/stop_slave.inc
##################################################### #####################################################
# Part 1: unencrypted master # Part 1: unencrypted master
##################################################### #####################################################
@ -63,7 +68,9 @@ SHOW TABLES;
Tables_in_test Tables_in_test
table1_no_encryption table1_no_encryption
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
########## ##########
# Cleanup # Cleanup
########## ##########

View File

@ -20,6 +20,13 @@
--let $rpl_topology= 1->2 --let $rpl_topology= 1->2
--source include/rpl_init.inc --source include/rpl_init.inc
--connection server_2
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
--connection server_1
--enable_connect_log --enable_connect_log
# We stop replication because we want it to happen after the switch # We stop replication because we want it to happen after the switch
@ -132,7 +139,8 @@ SHOW TABLES;
--disable_connect_log --disable_connect_log
--source include/stop_slave.inc --source include/stop_slave.inc
--enable_connect_log --enable_connect_log
reset slave; --let $master_use_gtid_option= No
--source include/reset_slave.inc
--echo ########## --echo ##########
--echo # Cleanup --echo # Cleanup

View File

@ -99,7 +99,8 @@ set default_master_connection = '';
change master to change master to
master_port=MYPORT_2, master_port=MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave; start slave;
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
# #

View File

@ -232,6 +232,9 @@ connection master;
####################################################################### #######################################################################
include/rpl_reset.inc include/rpl_reset.inc
connection slave; connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*"); call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*");
call mtr.add_suppression("Error writing file .*"); call mtr.add_suppression("Error writing file .*");
call mtr.add_suppression("Could not use .*"); call mtr.add_suppression("Could not use .*");
@ -277,5 +280,7 @@ include/stop_slave_sql.inc
Warnings: Warnings:
Note 1255 Slave already has been stopped Note 1255 Slave already has been stopped
RESET SLAVE; RESET SLAVE;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
RESET MASTER; RESET MASTER;
include/rpl_end.inc include/rpl_end.inc

View File

@ -2,6 +2,9 @@ include/master-slave.inc
[connection master] [connection master]
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
include/stop_slave.inc
connection master; connection master;
call mtr.add_suppression("Error in Log_event::read_log_event()"); call mtr.add_suppression("Error in Log_event::read_log_event()");
include/rpl_stop_server.inc [server_number=1] include/rpl_stop_server.inc [server_number=1]
@ -10,7 +13,9 @@ show binlog events;
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error
connection slave; connection slave;
call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log"); call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log");
reset slave; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
start slave; start slave;
include/wait_for_slave_param.inc [Last_IO_Errno] include/wait_for_slave_param.inc [Last_IO_Errno]
Last_IO_Errno = '1236' Last_IO_Errno = '1236'
@ -20,6 +25,8 @@ reset master;
connection slave; connection slave;
stop slave; stop slave;
reset slave; reset slave;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
drop table if exists t; drop table if exists t;
reset master; reset master;
End of the tests End of the tests

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
call mtr.add_suppression('Slave can not handle replication events with the checksum that master is configured to log'); call mtr.add_suppression('Slave can not handle replication events with the checksum that master is configured to log');
call mtr.add_suppression('Replication event checksum verification failed'); call mtr.add_suppression('Replication event checksum verification failed');
call mtr.add_suppression('Relay log write failure: could not queue event from master'); call mtr.add_suppression('Relay log write failure: could not queue event from master');
@ -122,7 +127,9 @@ must be zero
0 0
connection slave; connection slave;
stop slave; stop slave;
reset slave; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE"); set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE");
flush logs; flush logs;
connection master; connection master;

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
call mtr.add_suppression('Found invalid event in binary log'); call mtr.add_suppression('Found invalid event in binary log');
call mtr.add_suppression('Slave I/O: Relay log write failure: could not queue event from master'); call mtr.add_suppression('Slave I/O: Relay log write failure: could not queue event from master');
call mtr.add_suppression('event read from binlog did not pass crc check'); call mtr.add_suppression('event read from binlog did not pass crc check');

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
SET GLOBAL max_binlog_cache_size = 4096; SET GLOBAL max_binlog_cache_size = 4096;
SET GLOBAL binlog_cache_size = 4096; SET GLOBAL binlog_cache_size = 4096;

View File

@ -6,16 +6,18 @@ call mtr.add_suppression("Read semi-sync reply");
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT."); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.");
call mtr.add_suppression("mysqld: Got an error reading communication packets"); call mtr.add_suppression("mysqld: Got an error reading communication packets");
connection slave; connection slave;
set sql_log_bin=0;
call mtr.add_suppression("Master server does not support semi-sync"); call mtr.add_suppression("Master server does not support semi-sync");
call mtr.add_suppression("Semi-sync slave .* reply"); call mtr.add_suppression("Semi-sync slave .* reply");
call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group"); call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group");
set sql_log_bin=1;
connection master; connection master;
# #
# Uninstall semi-sync plugins on master and slave # Uninstall semi-sync plugins on master and slave
# #
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
set global rpl_semi_sync_master_enabled= 0; set global rpl_semi_sync_master_enabled= 0;
set global rpl_semi_sync_slave_enabled= 0; set global rpl_semi_sync_slave_enabled= 0;
connection master; connection master;
@ -310,7 +312,7 @@ Variable_name Value
Rpl_semi_sync_master_yes_tx 0 Rpl_semi_sync_master_yes_tx 0
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
include/kill_binlog_dump_threads.inc include/kill_binlog_dump_threads.inc
connection slave; connection slave;
include/start_slave.inc include/start_slave.inc
@ -340,7 +342,7 @@ Rpl_semi_sync_master_yes_tx 3
# #
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
connection master; connection master;
reset master; reset master;
include/kill_binlog_dump_threads.inc include/kill_binlog_dump_threads.inc

View File

@ -1,6 +1,11 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave; connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
connection slave;
CREATE USER 'nonsuperuser'@'127.0.0.1'; CREATE USER 'nonsuperuser'@'127.0.0.1';
GRANT ALTER,CREATE,DELETE,DROP,EVENT,INSERT,PROCESS,REPLICATION SLAVE, GRANT ALTER,CREATE,DELETE,DROP,EVENT,INSERT,PROCESS,REPLICATION SLAVE,
SELECT,UPDATE ON *.* TO 'nonsuperuser'@'127.0.0.1'; SELECT,UPDATE ON *.* TO 'nonsuperuser'@'127.0.0.1';

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
create table t1 (n int not null auto_increment primary key); create table t1 (n int not null auto_increment primary key);
insert into t1 values(NULL); insert into t1 values(NULL);
insert into t1 values(2); insert into t1 values(2);

View File

@ -9,7 +9,7 @@ File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB> master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB>
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
change master to master_log_pos=MASTER_LOG_POS; change master to master_log_pos=MASTER_LOG_POS, master_use_gtid=no;
start slave; start slave;
include/wait_for_slave_io_error.inc [errno=1236] include/wait_for_slave_io_error.inc [errno=1236]
Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event; consider out of disk space on master; the first event 'master-bin.000001' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.'' Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event; consider out of disk space on master; the first event 'master-bin.000001' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.''
@ -23,7 +23,7 @@ drop table if exists t1;
create table t1 (n int); create table t1 (n int);
insert into t1 values (1),(2),(3); insert into t1 values (1),(2),(3);
connection slave; connection slave;
change master to master_log_pos=MASTER_LOG_POS; change master to master_log_pos=MASTER_LOG_POS, master_use_gtid=no;
start slave; start slave;
select * from t1 ORDER BY n; select * from t1 ORDER BY n;
n n

View File

@ -7,7 +7,7 @@ include/stop_slave.inc
change master to master_user='test'; change master to master_user='test';
Master_User = 'test' Master_User = 'test'
Master_Host = '127.0.0.1' Master_Host = '127.0.0.1'
reset slave; include/reset_slave.inc
Master_User = 'test' Master_User = 'test'
Master_Host = '127.0.0.1' Master_Host = '127.0.0.1'
change master to master_user='root'; change master to master_user='root';
@ -15,13 +15,13 @@ include/start_slave.inc
Master_User = 'root' Master_User = 'root'
Master_Host = '127.0.0.1' Master_Host = '127.0.0.1'
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
include/start_slave.inc include/start_slave.inc
connection master; connection master;
create temporary table t1 (a int); create temporary table t1 (a int);
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
include/start_slave.inc include/start_slave.inc
show status like 'slave_open_temp_tables'; show status like 'slave_open_temp_tables';
Variable_name Value Variable_name Value
@ -30,7 +30,7 @@ connection master;
drop temporary table if exists t1; drop temporary table if exists t1;
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
include/check_slave_no_error.inc include/check_slave_no_error.inc
change master to master_user='impossible_user_name'; change master to master_user='impossible_user_name';
start slave; start slave;
@ -44,13 +44,14 @@ change master to master_user='impossible_user_name';
start slave; start slave;
include/wait_for_slave_io_error.inc [errno=1045] include/wait_for_slave_io_error.inc [errno=1045]
include/stop_slave_sql.inc include/stop_slave_sql.inc
reset slave; include/reset_slave.inc
include/check_slave_no_error.inc include/check_slave_no_error.inc
change master to master_user='root'; change master to master_user='root';
reset slave; include/reset_slave.inc
include/start_slave.inc include/start_slave.inc
include/stop_slave.inc include/stop_slave.inc
reset slave all; reset slave all;
set @@global.gtid_slave_pos= "";
start slave; start slave;
ERROR HY000: Misconfigured slave: MASTER_HOST was not set; Fix in config file or with CHANGE MASTER TO ERROR HY000: Misconfigured slave: MASTER_HOST was not set; Fix in config file or with CHANGE MASTER TO
CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT; CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT;

View File

@ -10,7 +10,7 @@ INSERT INTO t2 VALUES (3),(4);
DROP TABLE t2; DROP TABLE t2;
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
CHANGE MASTER TO MASTER_USER='root', MASTER_CONNECT_RETRY=1, MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT; CHANGE MASTER TO MASTER_USER='root', MASTER_CONNECT_RETRY=1, MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT;
connection slave; connection slave;
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1; START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1;
@ -52,7 +52,7 @@ START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=MASTER
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS; START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
include/start_slave.inc include/start_slave.inc
include/rpl_reset.inc include/rpl_reset.inc
connection master; connection master;

View File

@ -1,6 +1,9 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave; connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
create table t1 (n int); create table t1 (n int);
reset master; reset master;
stop slave; stop slave;

View File

@ -7,7 +7,7 @@ include/stop_slave.inc
change master to master_user='test'; change master to master_user='test';
Master_User = 'test' Master_User = 'test'
Master_Host = '127.0.0.1' Master_Host = '127.0.0.1'
reset slave; include/reset_slave.inc
Master_User = 'test' Master_User = 'test'
Master_Host = '127.0.0.1' Master_Host = '127.0.0.1'
change master to master_user='root'; change master to master_user='root';
@ -15,13 +15,13 @@ include/start_slave.inc
Master_User = 'root' Master_User = 'root'
Master_Host = '127.0.0.1' Master_Host = '127.0.0.1'
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
include/start_slave.inc include/start_slave.inc
connection master; connection master;
create temporary table t1 (a int); create temporary table t1 (a int);
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
include/start_slave.inc include/start_slave.inc
show status like 'slave_open_temp_tables'; show status like 'slave_open_temp_tables';
Variable_name Value Variable_name Value
@ -30,7 +30,7 @@ connection master;
drop temporary table if exists t1; drop temporary table if exists t1;
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; include/reset_slave.inc
include/check_slave_no_error.inc include/check_slave_no_error.inc
change master to master_user='impossible_user_name'; change master to master_user='impossible_user_name';
start slave; start slave;
@ -44,13 +44,14 @@ change master to master_user='impossible_user_name';
start slave; start slave;
include/wait_for_slave_io_error.inc [errno=1045] include/wait_for_slave_io_error.inc [errno=1045]
include/stop_slave_sql.inc include/stop_slave_sql.inc
reset slave; include/reset_slave.inc
include/check_slave_no_error.inc include/check_slave_no_error.inc
change master to master_user='root'; change master to master_user='root';
reset slave; include/reset_slave.inc
include/start_slave.inc include/start_slave.inc
include/stop_slave.inc include/stop_slave.inc
reset slave all; reset slave all;
set @@global.gtid_slave_pos= "";
start slave; start slave;
ERROR HY000: Misconfigured slave: MASTER_HOST was not set; Fix in config file or with CHANGE MASTER TO ERROR HY000: Misconfigured slave: MASTER_HOST was not set; Fix in config file or with CHANGE MASTER TO
CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT; CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT;

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
create table t1 (a int auto_increment, primary key (a), b int, rand_value double not null); create table t1 (a int auto_increment, primary key (a), b int, rand_value double not null);
create table t2 (a int auto_increment, primary key (a), b int); create table t2 (a int auto_increment, primary key (a), b int);
@ -960,7 +965,9 @@ include/rpl_stop_server.inc [server_number=1]
include/rpl_start_server.inc [server_number=1] include/rpl_start_server.inc [server_number=1]
--> Master binlog: Server ver: 5.0.16-debug-log, Binlog ver: 4 --> Master binlog: Server ver: 5.0.16-debug-log, Binlog ver: 4
connection slave; connection slave;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
include/start_slave.inc include/start_slave.inc
SELECT MASTER_POS_WAIT('master-bin.000001', 513) >= 0; SELECT MASTER_POS_WAIT('master-bin.000001', 513) >= 0;
MASTER_POS_WAIT('master-bin.000001', 513) >= 0 MASTER_POS_WAIT('master-bin.000001', 513) >= 0
@ -991,7 +998,9 @@ DROP TRIGGER trg1;
DROP TABLE t1; DROP TABLE t1;
DROP TABLE t2; DROP TABLE t2;
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
SHOW TABLES LIKE 't_'; SHOW TABLES LIKE 't_';
Tables_in_test (t_) Tables_in_test (t_)

View File

@ -5,6 +5,12 @@
--source include/have_binlog_format_mixed_or_statement.inc --source include/have_binlog_format_mixed_or_statement.inc
--source include/master-slave.inc --source include/master-slave.inc
connection slave;
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
--connection master
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
# #
@ -315,7 +321,8 @@ let $binlog_version= query_get_value(SHOW BINLOG EVENTS, Info, 1);
# Make the slave to replay the new binlog. # Make the slave to replay the new binlog.
connection slave; connection slave;
RESET SLAVE; --let $master_use_gtid_option= No
--source include/reset_slave.inc
--source include/start_slave.inc --source include/start_slave.inc
SELECT MASTER_POS_WAIT('master-bin.000001', 513) >= 0; SELECT MASTER_POS_WAIT('master-bin.000001', 513) >= 0;
@ -342,7 +349,7 @@ DROP TABLE t1;
DROP TABLE t2; DROP TABLE t2;
--source include/stop_slave.inc --source include/stop_slave.inc
RESET SLAVE; --source include/reset_slave.inc
# The master should be clean. # The master should be clean.

View File

@ -31,28 +31,30 @@ CHANGE MASTER 'master4' TO MASTER_HOST='localhost', MASTER_PORT=10004, MASTER_US
CHANGE MASTER 'master5' TO MASTER_HOST='localhost', MASTER_PORT=10005, MASTER_USE_GTID=slave_pos; CHANGE MASTER 'master5' TO MASTER_HOST='localhost', MASTER_PORT=10005, MASTER_USE_GTID=slave_pos;
lineno line lineno line
1 SET GLOBAL gtid_slave_pos = '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; 1 SET GLOBAL gtid_slave_pos = '<NUM-NUM-NUM>,<NUM-NUM-NUM>';
2 CHANGE MASTER TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; 2 CHANGE MASTER TO master_use_gtid = slave_pos;
3 CHANGE MASTER 'master2' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; 3 CHANGE MASTER 'master2' TO master_use_gtid = slave_pos;
4 CHANGE MASTER 'master3' TO master_use_gtid = slave_pos; 4 CHANGE MASTER 'master3' TO master_use_gtid = slave_pos;
5 CHANGE MASTER 'master4' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; 5 CHANGE MASTER 'master4' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>;
6 CHANGE MASTER 'master5' TO master_use_gtid = slave_pos; 6 CHANGE MASTER 'master5' TO master_use_gtid = slave_pos;
line line
[00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: gtid_slave_pos '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; master '' filename '' position '0'; master 'master2' filename '' position '0'; master 'master3' master_use_gtid = slave_pos; master 'master4' filename '' position '0'; master 'master5' master_use_gtid = slave_pos [00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: gtid_slave_pos '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; master '' master_use_gtid = slave_pos; master 'master2' master_use_gtid = slave_pos; master 'master3' master_use_gtid = slave_pos; master 'master4' filename '' position '0'; master 'master5' master_use_gtid = slave_pos
CHANGE MASTER TO MASTER_HOST='localhost', MASTER_PORT=10000, MASTER_USE_GTID=slave_pos; CHANGE MASTER TO MASTER_HOST='localhost', MASTER_PORT=10000, MASTER_USE_GTID=slave_pos;
lineno line lineno line
1 SET GLOBAL gtid_slave_pos = '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; 1 SET GLOBAL gtid_slave_pos = '<NUM-NUM-NUM>,<NUM-NUM-NUM>';
2 CHANGE MASTER TO master_use_gtid = slave_pos; 2 CHANGE MASTER TO master_use_gtid = slave_pos;
3 CHANGE MASTER 'master2' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; 3 CHANGE MASTER 'master2' TO master_use_gtid = slave_pos;
4 CHANGE MASTER 'master3' TO master_use_gtid = slave_pos; 4 CHANGE MASTER 'master3' TO master_use_gtid = slave_pos;
5 CHANGE MASTER 'master4' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; 5 CHANGE MASTER 'master4' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>;
6 CHANGE MASTER 'master5' TO master_use_gtid = slave_pos; 6 CHANGE MASTER 'master5' TO master_use_gtid = slave_pos;
line line
[00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: gtid_slave_pos '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; master '' master_use_gtid = slave_pos; master 'master2' filename '' position '0'; master 'master3' master_use_gtid = slave_pos; master 'master4' filename '' position '0'; master 'master5' master_use_gtid = slave_pos [00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: gtid_slave_pos '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; master '' master_use_gtid = slave_pos; master 'master2' master_use_gtid = slave_pos; master 'master3' master_use_gtid = slave_pos; master 'master4' filename '' position '0'; master 'master5' master_use_gtid = slave_pos
RESET SLAVE ALL; RESET SLAVE ALL;
RESET SLAVE 'master2' ALL; RESET SLAVE 'master2' ALL;
RESET SLAVE 'master3' ALL; RESET SLAVE 'master3' ALL;
RESET SLAVE 'master4' ALL; RESET SLAVE 'master4' ALL;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
RESET SLAVE 'master5' ALL; RESET SLAVE 'master5' ALL;
# #
# End of 10.2 tests # End of 10.2 tests

View File

@ -10,7 +10,8 @@ multi-master.info
change master 'master1' to change master 'master1' to
master_port=MYPORT_1, master_port=MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave 'master1'; start slave 'master1';
set default_master_connection = 'master1'; set default_master_connection = 'master1';
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
@ -28,7 +29,8 @@ master1
change master 'MASTER 2.2' to change master 'MASTER 2.2' to
master_port=MYPORT_2, master_port=MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave 'MASTER 2.2'; start slave 'MASTER 2.2';
set default_master_connection = 'MASTER 2.2'; set default_master_connection = 'MASTER 2.2';
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
@ -53,6 +55,8 @@ stop slave 'master1';
set default_master_connection = 'master1'; set default_master_connection = 'master1';
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
reset slave 'master1' all; reset slave 'master1' all;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
# #
# List of files matching '*info*' pattern # List of files matching '*info*' pattern
# after 'master1' was completely reset, 'MASTER 2.2' still running # after 'master1' was completely reset, 'MASTER 2.2' still running
@ -69,7 +73,8 @@ set default_master_connection = '';
change master to change master to
master_port=MYPORT_1, master_port=MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave; start slave;
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
connect master1,127.0.0.1,root,,,$SERVER_MYPORT_1; connect master1,127.0.0.1,root,,,$SERVER_MYPORT_1;

View File

@ -30,7 +30,8 @@
eval change master 'master1' to eval change master 'master1' to
master_port=$SERVER_MYPORT_1, master_port=$SERVER_MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave 'master1'; start slave 'master1';
set default_master_connection = 'master1'; set default_master_connection = 'master1';
@ -54,7 +55,8 @@ set default_master_connection = 'master1';
eval change master 'MASTER 2.2' to eval change master 'MASTER 2.2' to
master_port=$SERVER_MYPORT_2, master_port=$SERVER_MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave 'MASTER 2.2'; start slave 'MASTER 2.2';
set default_master_connection = 'MASTER 2.2'; set default_master_connection = 'MASTER 2.2';
@ -107,7 +109,8 @@ set default_master_connection = '';
eval change master to eval change master to
master_port=$SERVER_MYPORT_1, master_port=$SERVER_MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave; start slave;
--source include/wait_for_slave_to_start.inc --source include/wait_for_slave_to_start.inc

View File

@ -24,9 +24,9 @@ insert into t1 values(1);
create table t2(a int); create table t2(a int);
insert into t2 values(1); insert into t2 values(1);
connection server_4; connection server_4;
change master 'm1' to master_port=MYPORT_1 , master_host='127.0.0.1', master_user='root'; change master 'm1' to master_port=MYPORT_1 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
change master 'm2' to master_port=MYPORT_2 , master_host='127.0.0.1', master_user='root'; change master 'm2' to master_port=MYPORT_2 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
change master to master_port=MYPORT_3 , master_host='127.0.0.1', master_user='root'; change master to master_port=MYPORT_3 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
start all slaves; start all slaves;
set default_master_connection = 'm1'; set default_master_connection = 'm1';
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
@ -65,14 +65,20 @@ Note 1938 SLAVE 'm2' stopped
Note 1938 SLAVE '' stopped Note 1938 SLAVE '' stopped
Note 1938 SLAVE 'm1' stopped Note 1938 SLAVE 'm1' stopped
RESET SLAVE 'm1' ALL ; RESET SLAVE 'm1' ALL ;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
RESET SLAVE 'm2' ALL ; RESET SLAVE 'm2' ALL ;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
RESET SLAVE ALL ; RESET SLAVE ALL ;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
drop database a; drop database a;
drop database b; drop database b;
drop database c; drop database c;
change master 'm1' to master_port=MYPORT_1 , master_host='127.0.0.1', master_user='root'; change master 'm1' to master_port=MYPORT_1 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
change master 'm2' to master_port=MYPORT_2 , master_host='127.0.0.1', master_user='root'; change master 'm2' to master_port=MYPORT_2 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
change master to master_port=MYPORT_3 , master_host='127.0.0.1', master_user='root'; change master to master_port=MYPORT_3 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
start all slaves; start all slaves;
Warnings: Warnings:
Note 1937 SLAVE 'm2' started Note 1937 SLAVE 'm2' started
@ -124,3 +130,6 @@ SET default_master_connection = "m2";
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
SET default_master_connection = ""; SET default_master_connection = "";
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
RESET SLAVE ALL;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'

View File

@ -40,11 +40,11 @@ insert into t2 values(1);
--connection server_4 --connection server_4
--disable_warnings --disable_warnings
--replace_result $SERVER_MYPORT_1 MYPORT_1 --replace_result $SERVER_MYPORT_1 MYPORT_1
eval change master 'm1' to master_port=$SERVER_MYPORT_1 , master_host='127.0.0.1', master_user='root'; eval change master 'm1' to master_port=$SERVER_MYPORT_1 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
--replace_result $SERVER_MYPORT_2 MYPORT_2 --replace_result $SERVER_MYPORT_2 MYPORT_2
eval change master 'm2' to master_port=$SERVER_MYPORT_2 , master_host='127.0.0.1', master_user='root'; eval change master 'm2' to master_port=$SERVER_MYPORT_2 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
--replace_result $SERVER_MYPORT_3 MYPORT_3 --replace_result $SERVER_MYPORT_3 MYPORT_3
eval change master to master_port=$SERVER_MYPORT_3 , master_host='127.0.0.1', master_user='root'; eval change master to master_port=$SERVER_MYPORT_3 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
start all slaves; start all slaves;
set default_master_connection = 'm1'; set default_master_connection = 'm1';
--source include/wait_for_slave_to_start.inc --source include/wait_for_slave_to_start.inc
@ -78,11 +78,11 @@ drop database a;
drop database b; drop database b;
drop database c; drop database c;
--replace_result $SERVER_MYPORT_1 MYPORT_1 --replace_result $SERVER_MYPORT_1 MYPORT_1
eval change master 'm1' to master_port=$SERVER_MYPORT_1 , master_host='127.0.0.1', master_user='root'; eval change master 'm1' to master_port=$SERVER_MYPORT_1 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
--replace_result $SERVER_MYPORT_2 MYPORT_2 --replace_result $SERVER_MYPORT_2 MYPORT_2
eval change master 'm2' to master_port=$SERVER_MYPORT_2 , master_host='127.0.0.1', master_user='root'; eval change master 'm2' to master_port=$SERVER_MYPORT_2 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
--replace_result $SERVER_MYPORT_3 MYPORT_3 --replace_result $SERVER_MYPORT_3 MYPORT_3
eval change master to master_port=$SERVER_MYPORT_3 , master_host='127.0.0.1', master_user='root'; eval change master to master_port=$SERVER_MYPORT_3 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
start all slaves; start all slaves;
set default_master_connection = 'm1'; set default_master_connection = 'm1';
--source include/wait_for_slave_to_start.inc --source include/wait_for_slave_to_start.inc
@ -139,3 +139,4 @@ SET default_master_connection = "m2";
--source include/wait_for_slave_to_stop.inc --source include/wait_for_slave_to_stop.inc
SET default_master_connection = ""; SET default_master_connection = "";
--source include/wait_for_slave_to_stop.inc --source include/wait_for_slave_to_stop.inc
RESET SLAVE ALL;

View File

@ -24,9 +24,9 @@ insert into t1 values(1);
create table t2(a int); create table t2(a int);
insert into t2 values(1); insert into t2 values(1);
connection server_4; connection server_4;
change master 'm1' to master_port=MYPORT_1 , master_host='127.0.0.1', master_user='root'; change master 'm1' to master_port=MYPORT_1 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
change master 'm2' to master_port=MYPORT_2 , master_host='127.0.0.1', master_user='root'; change master 'm2' to master_port=MYPORT_2 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
change master to master_port=MYPORT_3 , master_host='127.0.0.1', master_user='root'; change master to master_port=MYPORT_3 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
start all slaves; start all slaves;
set default_master_connection = 'm1'; set default_master_connection = 'm1';
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
@ -88,3 +88,6 @@ SET default_master_connection = "m2";
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
SET default_master_connection = ""; SET default_master_connection = "";
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
change master to master_use_gtid=slave_pos;
change master 'm1' to master_use_gtid=slave_pos;
change master 'm2' to master_use_gtid=slave_pos;

View File

@ -37,11 +37,11 @@ insert into t2 values(1);
--connection server_4 --connection server_4
--disable_warnings --disable_warnings
--replace_result $SERVER_MYPORT_1 MYPORT_1 --replace_result $SERVER_MYPORT_1 MYPORT_1
eval change master 'm1' to master_port=$SERVER_MYPORT_1 , master_host='127.0.0.1', master_user='root'; eval change master 'm1' to master_port=$SERVER_MYPORT_1 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
--replace_result $SERVER_MYPORT_2 MYPORT_2 --replace_result $SERVER_MYPORT_2 MYPORT_2
eval change master 'm2' to master_port=$SERVER_MYPORT_2 , master_host='127.0.0.1', master_user='root'; eval change master 'm2' to master_port=$SERVER_MYPORT_2 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
--replace_result $SERVER_MYPORT_3 MYPORT_3 --replace_result $SERVER_MYPORT_3 MYPORT_3
eval change master to master_port=$SERVER_MYPORT_3 , master_host='127.0.0.1', master_user='root'; eval change master to master_port=$SERVER_MYPORT_3 , master_host='127.0.0.1', master_user='root', master_use_gtid=no;
start all slaves; start all slaves;
set default_master_connection = 'm1'; set default_master_connection = 'm1';
--source include/wait_for_slave_to_start.inc --source include/wait_for_slave_to_start.inc
@ -114,3 +114,7 @@ SET default_master_connection = "m2";
SET default_master_connection = ""; SET default_master_connection = "";
--source include/wait_for_slave_to_stop.inc --source include/wait_for_slave_to_stop.inc
# Reset for check-testcase
change master to master_use_gtid=slave_pos;
change master 'm1' to master_use_gtid=slave_pos;
change master 'm2' to master_use_gtid=slave_pos;

View File

@ -64,7 +64,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 1 Master_Server_Id 1
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids
@ -125,7 +125,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 2 Master_Server_Id 2
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids

View File

@ -99,7 +99,8 @@ set default_master_connection = '';
change master to change master to
master_port=MYPORT_2, master_port=MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave; start slave;
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
# #

View File

@ -7,7 +7,8 @@ ERROR HY000: Incorrect arguments to MASTER_HOST
change master to change master to
master_port=MYPORT_1, master_port=MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root' master_user='root',
master_use_gtid=no
for channel 'master1'; for channel 'master1';
start slave for channel 'master1'; start slave for channel 'master1';
set default_master_connection = 'master1'; set default_master_connection = 'master1';
@ -102,7 +103,8 @@ set default_master_connection = '';
change master to change master to
master_port=MYPORT_2, master_port=MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave; start slave;
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
# #
@ -318,6 +320,8 @@ Last_SQL_Errno = '0'
# reset slave # reset slave
# #
RESET SLAVE for channel 'master1'; RESET SLAVE for channel 'master1';
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
show slave status for channel 'master1' show slave status for channel 'master1'
Master_Port = 'MYPORT_1' Master_Port = 'MYPORT_1'

View File

@ -29,7 +29,8 @@ change master to master_host='' for channel 'abc2';
eval change master to eval change master to
master_port=$SERVER_MYPORT_1, master_port=$SERVER_MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root' master_user='root',
master_use_gtid=no
for channel 'master1'; for channel 'master1';
start slave for channel 'master1'; start slave for channel 'master1';
@ -154,7 +155,8 @@ set default_master_connection = '';
eval change master to eval change master to
master_port=$SERVER_MYPORT_2, master_port=$SERVER_MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave; start slave;
--source include/wait_for_slave_to_start.inc --source include/wait_for_slave_to_start.inc

View File

@ -14,14 +14,14 @@ connection slave;
stop slave 'master1'; stop slave 'master1';
show slave 'master1' status; show slave 'master1' status;
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert Last_IO_Errno Last_IO_Error Last_SQL_Errno Last_SQL_Error Replicate_Ignore_Server_Ids Master_Server_Id Master_SSL_Crl Master_SSL_Crlpath Using_Gtid Gtid_IO_Pos Replicate_Do_Domain_Ids Replicate_Ignore_Domain_Ids Parallel_Mode SQL_Delay SQL_Remaining_Delay Slave_SQL_Running_State Slave_DDL_Groups Slave_Non_Transactional_Groups Slave_Transactional_Groups Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert Last_IO_Errno Last_IO_Error Last_SQL_Errno Last_SQL_Error Replicate_Ignore_Server_Ids Master_Server_Id Master_SSL_Crl Master_SSL_Crlpath Using_Gtid Gtid_IO_Pos Replicate_Do_Domain_Ids Replicate_Ignore_Domain_Ids Parallel_Mode SQL_Delay SQL_Remaining_Delay Slave_SQL_Running_State Slave_DDL_Groups Slave_Non_Transactional_Groups Slave_Transactional_Groups
127.0.0.1 root MYPORT_1 60 master-bin.000001 <read_master_log_pos> mysqld-relay-bin-master1.000002 <relay_log_pos> master-bin.000001 No No 0 0 <read_master_log_pos> <relay_log_space> None 0 No NULL No 0 0 1 No optimistic 0 NULL 2 1 0 127.0.0.1 root MYPORT_1 60 master-bin.000001 <read_master_log_pos> mysqld-relay-bin-master1.000002 <relay_log_pos> master-bin.000001 No No 0 0 <read_master_log_pos> <relay_log_space> None 0 No NULL No 0 0 1 Slave_Pos 0-1-3 optimistic 0 NULL 2 1 0
mysqld-relay-bin-master1.000001 mysqld-relay-bin-master1.000001
mysqld-relay-bin-master1.000002 mysqld-relay-bin-master1.000002
mysqld-relay-bin-master1.index mysqld-relay-bin-master1.index
reset slave 'master1'; reset slave 'master1';
show slave 'master1' status; show slave 'master1' status;
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert Last_IO_Errno Last_IO_Error Last_SQL_Errno Last_SQL_Error Replicate_Ignore_Server_Ids Master_Server_Id Master_SSL_Crl Master_SSL_Crlpath Using_Gtid Gtid_IO_Pos Replicate_Do_Domain_Ids Replicate_Ignore_Domain_Ids Parallel_Mode SQL_Delay SQL_Remaining_Delay Slave_SQL_Running_State Slave_DDL_Groups Slave_Non_Transactional_Groups Slave_Transactional_Groups Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert Last_IO_Errno Last_IO_Error Last_SQL_Errno Last_SQL_Error Replicate_Ignore_Server_Ids Master_Server_Id Master_SSL_Crl Master_SSL_Crlpath Using_Gtid Gtid_IO_Pos Replicate_Do_Domain_Ids Replicate_Ignore_Domain_Ids Parallel_Mode SQL_Delay SQL_Remaining_Delay Slave_SQL_Running_State Slave_DDL_Groups Slave_Non_Transactional_Groups Slave_Transactional_Groups
127.0.0.1 root MYPORT_1 60 4 <relay_log_pos> No No 0 0 0 <relay_log_space> None 0 No NULL No 0 0 1 No optimistic 0 NULL 2 1 0 127.0.0.1 root MYPORT_1 60 4 <relay_log_pos> No No 0 0 0 <relay_log_space> None 0 No NULL No 0 0 1 Slave_Pos optimistic 0 NULL 2 1 0
reset slave 'master1' all; reset slave 'master1' all;
show slave 'master1' status; show slave 'master1' status;
ERROR HY000: There is no master connection 'master1' ERROR HY000: There is no master connection 'master1'

View File

@ -62,7 +62,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 1 Master_Server_Id 1
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids
@ -123,7 +123,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 2 Master_Server_Id 2
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids
@ -148,7 +148,7 @@ CHANNEL_NAME slave2
HOST 127.0.0.1 HOST 127.0.0.1
PORT # PORT #
USER root USER root
USING_GTID NO USING_GTID SLAVE_POS
SSL_ALLOWED NO SSL_ALLOWED NO
SSL_CA_FILE SSL_CA_FILE
SSL_CA_PATH SSL_CA_PATH
@ -168,7 +168,7 @@ CHANNEL_NAME slave1
HOST 127.0.0.1 HOST 127.0.0.1
PORT # PORT #
USER root USER root
USING_GTID NO USING_GTID SLAVE_POS
SSL_ALLOWED NO SSL_ALLOWED NO
SSL_CA_FILE SSL_CA_FILE
SSL_CA_PATH SSL_CA_PATH
@ -249,7 +249,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 1 Master_Server_Id 1
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids
@ -306,7 +306,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 1 Master_Server_Id 1
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids
@ -367,7 +367,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 2 Master_Server_Id 2
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids
@ -430,7 +430,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 2 Master_Server_Id 2
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids
@ -495,7 +495,7 @@ Replicate_Ignore_Server_Ids
Master_Server_Id 2 Master_Server_Id 2
Master_SSL_Crl Master_SSL_Crl
Master_SSL_Crlpath Master_SSL_Crlpath
Using_Gtid No Using_Gtid Slave_Pos
Gtid_IO_Pos Gtid_IO_Pos
Replicate_Do_Domain_Ids Replicate_Do_Domain_Ids
Replicate_Ignore_Domain_Ids Replicate_Ignore_Domain_Ids

View File

@ -12,7 +12,8 @@ connect slave,127.0.0.1,root,,,$SERVER_MYPORT_3;
change master 'master1' to change master 'master1' to
master_port=MYPORT_1, master_port=MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave 'master1'; start slave 'master1';
set default_master_connection = 'master1'; set default_master_connection = 'master1';
include/wait_for_slave_to_start.inc include/wait_for_slave_to_start.inc
@ -20,7 +21,8 @@ set default_master_connection = 'master2';
change master 'master2' to change master 'master2' to
master_port=MYPORT_2, master_port=MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
set global sql_slave_skip_counter = 2; set global sql_slave_skip_counter = 2;
select @@global.sql_slave_skip_counter; select @@global.sql_slave_skip_counter;
@@global.sql_slave_skip_counter @@global.sql_slave_skip_counter

View File

@ -38,7 +38,8 @@ create table db.t3 (i int) engine=MyISAM;
eval change master 'master1' to eval change master 'master1' to
master_port=$SERVER_MYPORT_1, master_port=$SERVER_MYPORT_1,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave 'master1'; start slave 'master1';
set default_master_connection = 'master1'; set default_master_connection = 'master1';
@ -53,7 +54,8 @@ set default_master_connection = 'master2';
eval change master 'master2' to eval change master 'master2' to
master_port=$SERVER_MYPORT_2, master_port=$SERVER_MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
# the schema creation will be replicated from the 1st master, # the schema creation will be replicated from the 1st master,
# so we want to skip it in the second replication connection # so we want to skip it in the second replication connection

View File

@ -159,7 +159,8 @@ set default_master_connection = '';
eval change master to eval change master to
master_port=$SERVER_MYPORT_2, master_port=$SERVER_MYPORT_2,
master_host='127.0.0.1', master_host='127.0.0.1',
master_user='root'; master_user='root',
master_use_gtid=no;
start slave; start slave;
--source include/wait_for_slave_to_start.inc --source include/wait_for_slave_to_start.inc

View File

@ -389,6 +389,11 @@ RESET MASTER;
--source include/rpl_reset.inc --source include/rpl_reset.inc
-- connection slave -- connection slave
# Slave tests rely on logic of non-gtid mode
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
# slave suppressions # slave suppressions
call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*"); call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*");

View File

@ -21,6 +21,13 @@
# and slave are diverging. # and slave are diverging.
# #
######################################################################################## ########################################################################################
--connection slave
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
--connection master
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
let $old_max_binlog_cache_size= query_get_value(SHOW VARIABLES LIKE "max_binlog_cache_size", Value, 1); let $old_max_binlog_cache_size= query_get_value(SHOW VARIABLES LIKE "max_binlog_cache_size", Value, 1);

View File

@ -22,6 +22,10 @@
--source include/master-slave.inc --source include/master-slave.inc
--connection slave --connection slave
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
# Make sure the slave is stopped while we are messing with master. # Make sure the slave is stopped while we are messing with master.
# Otherwise we get occasional failures as the slave manages to re-connect # Otherwise we get occasional failures as the slave manages to re-connect
# to the newly started master and we get extra events applied, causing # to the newly started master and we get extra events applied, causing
@ -49,7 +53,8 @@ show binlog events;
--connection slave --connection slave
call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log"); call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log");
reset slave; --let $master_use_gtid_option= No
--source include/reset_slave.inc
start slave; start slave;
# ER_MASTER_FATAL_ERROR_READING_BINLOG 1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG 1236

View File

@ -11,6 +11,12 @@
--source include/have_binlog_format_mixed.inc --source include/have_binlog_format_mixed.inc
--source include/master-slave.inc --source include/master-slave.inc
--connection slave
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
--connection master
call mtr.add_suppression('Slave can not handle replication events with the checksum that master is configured to log'); call mtr.add_suppression('Slave can not handle replication events with the checksum that master is configured to log');
call mtr.add_suppression('Replication event checksum verification failed'); call mtr.add_suppression('Replication event checksum verification failed');
# due to C failure simulation # due to C failure simulation
@ -196,7 +202,8 @@ select count(*) as 'must be zero' from t2;
# #
connection slave; connection slave;
stop slave; stop slave;
reset slave; --let $master_use_gtid_option= No
--source include/reset_slave.inc
# randomize slave server's own checksum policy # randomize slave server's own checksum policy
set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE"); set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE");

View File

@ -24,6 +24,12 @@
--source include/have_debug.inc --source include/have_debug.inc
--source include/master-slave.inc --source include/master-slave.inc
--connection slave
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
--connection master
# Block legal errors for MTR # Block legal errors for MTR
call mtr.add_suppression('Found invalid event in binary log'); call mtr.add_suppression('Found invalid event in binary log');
call mtr.add_suppression('Slave I/O: Relay log write failure: could not queue event from master'); call mtr.add_suppression('Slave I/O: Relay log write failure: could not queue event from master');

View File

@ -88,7 +88,7 @@ connection slave;
DELETE FROM t2; DELETE FROM t2;
# Set slave position to the BEGIN log event # Set slave position to the BEGIN log event
--replace_result $master_pos_begin <master_pos_begin> --replace_result $master_pos_begin <master_pos_begin>
eval CHANGE MASTER TO MASTER_LOG_POS=$master_pos_begin; eval CHANGE MASTER TO MASTER_LOG_POS=$master_pos_begin, MASTER_USE_GTID=NO;
BEGIN; BEGIN;
# Hold lock # Hold lock
SELECT * FROM t1 FOR UPDATE; SELECT * FROM t1 FOR UPDATE;
@ -121,7 +121,7 @@ SET global max_relay_log_size=0;
DELETE FROM t2; DELETE FROM t2;
# Set slave position to the BEGIN log event # Set slave position to the BEGIN log event
--replace_result $master_pos_begin <master_pos_begin> --replace_result $master_pos_begin <master_pos_begin>
eval CHANGE MASTER TO MASTER_LOG_POS=$master_pos_begin; eval CHANGE MASTER TO MASTER_LOG_POS=$master_pos_begin, MASTER_USE_GTID=NO;
BEGIN; BEGIN;
# Hold lock # Hold lock
SELECT * FROM t1 FOR UPDATE; SELECT * FROM t1 FOR UPDATE;

View File

@ -450,7 +450,7 @@ connection master;
--echo ** Stop and Reset Slave ** --echo ** Stop and Reset Slave **
--echo --echo
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
--echo --echo
--echo ** create table slave side ** --echo ** create table slave side **
eval CREATE TABLE t10 (a INT PRIMARY KEY, b BLOB, c CHAR(5) eval CREATE TABLE t10 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
@ -507,7 +507,7 @@ sync_slave_with_master;
--echo --echo
--echo *** Create t11 on slave *** --echo *** Create t11 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t11 (a INT PRIMARY KEY, b BLOB, c VARCHAR(254) eval CREATE TABLE t11 (a INT PRIMARY KEY, b BLOB, c VARCHAR(254)
) ENGINE=$engine_type; ) ENGINE=$engine_type;
@ -563,7 +563,7 @@ sync_slave_with_master;
--echo --echo
--echo *** Create t12 on slave *** --echo *** Create t12 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t12 (a INT PRIMARY KEY, b BLOB, c BLOB eval CREATE TABLE t12 (a INT PRIMARY KEY, b BLOB, c BLOB
) ENGINE=$engine_type; ) ENGINE=$engine_type;
@ -614,7 +614,7 @@ sync_slave_with_master;
--echo --echo
--echo *** Create t14 on slave *** --echo *** Create t14 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t14 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) eval CREATE TABLE t14 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE=$engine_type; ) ENGINE=$engine_type;
@ -689,7 +689,7 @@ connection slave;
#*************************** #***************************
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
--echo --echo
--echo *** Drop t14 *** --echo *** Drop t14 ***
@ -711,7 +711,7 @@ START SLAVE;
--echo --echo
--echo *** Create t15 on slave *** --echo *** Create t15 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t15 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) eval CREATE TABLE t15 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE=$engine_type; ) ENGINE=$engine_type;
@ -753,7 +753,7 @@ connection slave;
--let $show_slave_sql_error= 1 --let $show_slave_sql_error= 1
--source include/wait_for_slave_sql_error.inc --source include/wait_for_slave_sql_error.inc
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
--echo --echo
--echo *** Drop t15 *** --echo *** Drop t15 ***
@ -775,7 +775,7 @@ START SLAVE;
--echo --echo
--echo *** Create t16 on slave *** --echo *** Create t16 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t16 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) eval CREATE TABLE t16 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE=$engine_type; ) ENGINE=$engine_type;
@ -830,7 +830,7 @@ connection slave;
--let $show_slave_sql_error= 1 --let $show_slave_sql_error= 1
--source include/wait_for_slave_sql_error.inc --source include/wait_for_slave_sql_error.inc
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
--echo --echo
--echo *** Drop t16 *** --echo *** Drop t16 ***
@ -853,7 +853,7 @@ START SLAVE;
--echo --echo
--echo *** Create t17 on slave *** --echo *** Create t17 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t17 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) eval CREATE TABLE t17 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE=$engine_type; ) ENGINE=$engine_type;
@ -919,7 +919,7 @@ sync_slave_with_master;
--echo --echo
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t18 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) eval CREATE TABLE t18 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE=$engine_type; ) ENGINE=$engine_type;
@ -982,7 +982,7 @@ sync_slave_with_master;
--echo --echo
--echo *** Create t5 on slave *** --echo *** Create t5 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t5 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) eval CREATE TABLE t5 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE=$engine_type; ) ENGINE=$engine_type;

View File

@ -25,7 +25,7 @@ call mtr.add_suppression("Slave SQL.*Column [0-9] of table .test.t[0-9]*. cannot
sync_slave_with_master; sync_slave_with_master;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
SET @saved_slave_type_conversions = @@slave_type_conversions; SET @saved_slave_type_conversions = @@slave_type_conversions;
SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY'; SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY';
@ -71,7 +71,7 @@ sync_slave_with_master;
## BUG22086 ## BUG22086
--echo *** Create t2 on slave *** --echo *** Create t2 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5), eval CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -96,7 +96,7 @@ START SLAVE;
--let $show_slave_sql_error= 1 --let $show_slave_sql_error= 1
--source include/wait_for_slave_sql_error.inc --source include/wait_for_slave_sql_error.inc
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
SELECT * FROM t2 ORDER BY a; SELECT * FROM t2 ORDER BY a;
connection master; connection master;
@ -116,7 +116,7 @@ sync_slave_with_master;
#################################### ####################################
--echo *** Create t3 on slave *** --echo *** Create t3 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t3 (a INT, b INT PRIMARY KEY, c CHAR(20), eval CREATE TABLE t3 (a INT, b INT PRIMARY KEY, c CHAR(20),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -161,7 +161,7 @@ sync_slave_with_master;
--echo *** Create t4 on slave *** --echo *** Create t4 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t4 (a INT, b INT PRIMARY KEY, c CHAR(20), eval CREATE TABLE t4 (a INT, b INT PRIMARY KEY, c CHAR(20),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -204,7 +204,7 @@ sync_slave_with_master;
--echo *** Create t5 on slave *** --echo *** Create t5 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t5 (a INT PRIMARY KEY, b CHAR(5), eval CREATE TABLE t5 (a INT PRIMARY KEY, b CHAR(5),
c FLOAT, d INT, e DOUBLE, c FLOAT, d INT, e DOUBLE,
f DECIMAL(8,2))ENGINE=$engine_type; f DECIMAL(8,2))ENGINE=$engine_type;
@ -249,7 +249,7 @@ sync_slave_with_master;
--echo *** Create t6 on slave *** --echo *** Create t6 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t6 (a INT PRIMARY KEY, b CHAR(5), eval CREATE TABLE t6 (a INT PRIMARY KEY, b CHAR(5),
c FLOAT, d INT)ENGINE=$engine_type; c FLOAT, d INT)ENGINE=$engine_type;
@ -307,7 +307,7 @@ DROP TABLE t6;
--echo *** Create t7 on slave *** --echo *** Create t7 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t7 (a INT KEY, b BLOB, c CHAR(5), eval CREATE TABLE t7 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00', d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
e CHAR(20) DEFAULT 'Extra Column Testing') e CHAR(20) DEFAULT 'Extra Column Testing')
@ -349,7 +349,7 @@ sync_slave_with_master;
########################################### ###########################################
--echo *** Create t8 on slave *** --echo *** Create t8 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t8 (a INT KEY, b BLOB, c CHAR(5), eval CREATE TABLE t8 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00', d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
e INT)ENGINE=$engine_type; e INT)ENGINE=$engine_type;
@ -395,7 +395,7 @@ sync_slave_with_master;
# Error reaction is up to sql_mode of the slave sql (bug#38173) # Error reaction is up to sql_mode of the slave sql (bug#38173)
#--echo *** Create t9 on slave *** #--echo *** Create t9 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5), eval CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
ON UPDATE CURRENT_TIMESTAMP, ON UPDATE CURRENT_TIMESTAMP,
@ -449,7 +449,7 @@ sync_slave_with_master;
############################################ ############################################
--echo *** Create t10 on slave *** --echo *** Create t10 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t10 (a INT KEY, b BLOB, f DOUBLE DEFAULT '233', eval CREATE TABLE t10 (a INT KEY, b BLOB, f DOUBLE DEFAULT '233',
c CHAR(5), e INT DEFAULT '1')ENGINE=$engine_type; c CHAR(5), e INT DEFAULT '1')ENGINE=$engine_type;
@ -491,7 +491,7 @@ sync_slave_with_master;
############################################ ############################################
--echo *** Create t11 on slave *** --echo *** Create t11 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t11 (a INT KEY, b BLOB, f INT, eval CREATE TABLE t11 (a INT KEY, b BLOB, f INT,
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE=$engine_type; c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE=$engine_type;
@ -533,7 +533,7 @@ sync_slave_with_master;
############################################ ############################################
--echo *** Create t12 on slave *** --echo *** Create t12 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t12 (a INT KEY, b BLOB, f TEXT, eval CREATE TABLE t12 (a INT KEY, b BLOB, f TEXT,
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE=$engine_type; c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE=$engine_type;
@ -572,7 +572,7 @@ sync_slave_with_master;
--echo *** BUG 22177 Start *** --echo *** BUG 22177 Start ***
--echo *** Create t13 on slave *** --echo *** Create t13 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t13 (a INT KEY, b BLOB, c CHAR(5), eval CREATE TABLE t13 (a INT KEY, b BLOB, c CHAR(5),
d INT DEFAULT '1', d INT DEFAULT '1',
e TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP e TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -620,7 +620,7 @@ sync_slave_with_master;
--echo *** Create t14 on slave *** --echo *** Create t14 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t14 (c1 INT KEY, c4 BLOB, c5 CHAR(5), eval CREATE TABLE t14 (c1 INT KEY, c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -660,7 +660,7 @@ SELECT * FROM t14 ORDER BY c1;
--echo *** Create t14a on slave *** --echo *** Create t14a on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t14a (c1 INT KEY, c4 BLOB, c5 CHAR(5), eval CREATE TABLE t14a (c1 INT KEY, c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -690,7 +690,7 @@ sync_slave_with_master;
--replace_column 5 CURRENT_TIMESTAMP --replace_column 5 CURRENT_TIMESTAMP
SELECT * FROM t14a ORDER BY c1; SELECT * FROM t14a ORDER BY c1;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
--echo *** Master Drop c5 *** --echo *** Master Drop c5 ***
connection master; connection master;
@ -749,7 +749,7 @@ sync_slave_with_master;
--echo *** Create t15 on slave *** --echo *** Create t15 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t15 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT, eval CREATE TABLE t15 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
c4 BLOB, c5 CHAR(5), c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
@ -822,7 +822,7 @@ sync_slave_with_master;
--echo *** Create t16 on slave *** --echo *** Create t16 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t16 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT, eval CREATE TABLE t16 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
c4 BLOB, c5 CHAR(5), c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
@ -877,7 +877,7 @@ sync_slave_with_master;
--echo *** Create t17 on slave *** --echo *** Create t17 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; --source include/reset_slave.inc
eval CREATE TABLE t17 (a SMALLINT, b INT PRIMARY KEY, c CHAR(5), eval CREATE TABLE t17 (a SMALLINT, b INT PRIMARY KEY, c CHAR(5),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')

View File

@ -6,6 +6,12 @@
source include/master-slave.inc; source include/master-slave.inc;
connection slave;
source include/stop_slave.inc;
change master to master_use_gtid=no;
source include/start_slave.inc;
connection master;
let $SERVER_VERSION=`select version()`; let $SERVER_VERSION=`select version()`;
create table t1 (a int) ENGINE=MyISAM; create table t1 (a int) ENGINE=MyISAM;

View File

@ -109,7 +109,7 @@ connection slave;
# RESET SLAVE and see if error is cleared in SHOW SLAVE STATUS. # RESET SLAVE and see if error is cleared in SHOW SLAVE STATUS.
stop slave; stop slave;
reset slave; --source include/reset_slave.inc
--source include/check_slave_no_error.inc --source include/check_slave_no_error.inc
# Finally, see if logging is done ok on master for a failing LOAD DATA INFILE # Finally, see if logging is done ok on master for a failing LOAD DATA INFILE

View File

@ -11,7 +11,9 @@
-- source include/master-slave.inc -- source include/master-slave.inc
sync_slave_with_master; sync_slave_with_master;
--disable_query_log --disable_query_log
set sql_log_bin=0;
call mtr.add_suppression('Slave I/O: Get master BINLOG_CHECKSUM failed with error'); call mtr.add_suppression('Slave I/O: Get master BINLOG_CHECKSUM failed with error');
set sql_log_bin=1;
--enable_query_log --enable_query_log
let $status_items= Master_User, Master_Host; let $status_items= Master_User, Master_Host;
source include/show_slave_status.inc; source include/show_slave_status.inc;
@ -20,7 +22,7 @@ source include/stop_slave.inc;
change master to master_user='test'; change master to master_user='test';
source include/show_slave_status.inc; source include/show_slave_status.inc;
reset slave; --source include/reset_slave.inc
source include/show_slave_status.inc; source include/show_slave_status.inc;
change master to master_user='root'; change master to master_user='root';
@ -31,13 +33,13 @@ source include/show_slave_status.inc;
# test of crash with temp tables & RESET SLAVE # test of crash with temp tables & RESET SLAVE
# (test to see if RESET SLAVE clears temp tables in memory and disk) # (test to see if RESET SLAVE clears temp tables in memory and disk)
source include/stop_slave.inc; source include/stop_slave.inc;
reset slave; --source include/reset_slave.inc
source include/start_slave.inc; source include/start_slave.inc;
connection master; connection master;
create temporary table t1 (a int); create temporary table t1 (a int);
sync_slave_with_master; sync_slave_with_master;
source include/stop_slave.inc; source include/stop_slave.inc;
reset slave; --source include/reset_slave.inc
source include/start_slave.inc; source include/start_slave.inc;
sync_with_master; sync_with_master;
show status like 'slave_open_temp_tables'; show status like 'slave_open_temp_tables';
@ -51,7 +53,7 @@ sync_slave_with_master;
# clearing the status # clearing the status
source include/stop_slave.inc; source include/stop_slave.inc;
reset slave; --source include/reset_slave.inc
source include/check_slave_no_error.inc; source include/check_slave_no_error.inc;
# #
@ -79,7 +81,7 @@ let $slave_io_errno= 1045;
--source include/wait_for_slave_io_error.inc --source include/wait_for_slave_io_error.inc
--source include/stop_slave_sql.inc --source include/stop_slave_sql.inc
reset slave; --source include/reset_slave.inc
source include/check_slave_no_error.inc; source include/check_slave_no_error.inc;
change master to master_user='root'; change master to master_user='root';
@ -88,7 +90,7 @@ change master to master_user='root';
# BUG#11809016 - NO WAY TO DISCOVER AN INSTANCE IS NO LONGER A SLAVE FOLLOWING MYSQL BUG#28796 # BUG#11809016 - NO WAY TO DISCOVER AN INSTANCE IS NO LONGER A SLAVE FOLLOWING MYSQL BUG#28796
# #
reset slave; --source include/reset_slave.inc
--source include/start_slave.inc --source include/start_slave.inc
--source include/stop_slave.inc --source include/stop_slave.inc
@ -97,6 +99,7 @@ reset slave;
--let $_slave_master_port= query_get_value(SHOW SLAVE STATUS, Master_Port, 1) --let $_slave_master_port= query_get_value(SHOW SLAVE STATUS, Master_Port, 1)
reset slave all; reset slave all;
set @@global.gtid_slave_pos= "";
--error ER_BAD_SLAVE --error ER_BAD_SLAVE
start slave; start slave;

View File

@ -17,9 +17,16 @@ call mtr.add_suppression("Read semi-sync reply");
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT."); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.");
call mtr.add_suppression("mysqld: Got an error reading communication packets"); call mtr.add_suppression("mysqld: Got an error reading communication packets");
connection slave; connection slave;
# While 'Current_Pos' exists as an option for Using_Gtd, keeping these
# events in the binlog will update gtid_binlog_pos, and the later calls to
# set `@@global.gtid_slave_pos= ""` will provide warning messages with
# inconsistent GTID values because the seq_nos are non-deterministic with
# the masters events coming in concurrently
set sql_log_bin=0;
call mtr.add_suppression("Master server does not support semi-sync"); call mtr.add_suppression("Master server does not support semi-sync");
call mtr.add_suppression("Semi-sync slave .* reply"); call mtr.add_suppression("Semi-sync slave .* reply");
call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group"); call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group");
set sql_log_bin=1;
connection master; connection master;
# wait for dying connections (if any) to disappear # wait for dying connections (if any) to disappear
@ -36,7 +43,7 @@ let $_connections_normal_slave= query_get_value(SHOW STATUS LIKE 'Threads_connec
--echo # --echo #
connection slave; connection slave;
source include/stop_slave.inc; source include/stop_slave.inc;
reset slave; --source include/reset_slave.inc
set global rpl_semi_sync_master_enabled= 0; set global rpl_semi_sync_master_enabled= 0;
set global rpl_semi_sync_slave_enabled= 0; set global rpl_semi_sync_slave_enabled= 0;
@ -351,7 +358,7 @@ show status like 'Rpl_semi_sync_master_yes_tx';
connection slave; connection slave;
source include/stop_slave.inc; source include/stop_slave.inc;
reset slave; --source include/reset_slave.inc
# Kill the dump thread on master for previous slave connection and # Kill the dump thread on master for previous slave connection and
--source include/kill_binlog_dump_threads.inc --source include/kill_binlog_dump_threads.inc
@ -388,7 +395,7 @@ show status like 'Rpl_semi_sync_master_yes_tx';
--echo # --echo #
connection slave; connection slave;
source include/stop_slave.inc; source include/stop_slave.inc;
reset slave; --source include/reset_slave.inc
connection master; connection master;
reset master; reset master;

View File

@ -19,6 +19,12 @@
--source include/have_innodb.inc --source include/have_innodb.inc
--source include/master-slave.inc --source include/master-slave.inc
--connection slave
--source include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
--source include/start_slave.inc
--connection master
connection slave; connection slave;
# Test that SUPER is required to change @@replicate_events_marked_for_skip. # Test that SUPER is required to change @@replicate_events_marked_for_skip.
CREATE USER 'nonsuperuser'@'127.0.0.1'; CREATE USER 'nonsuperuser'@'127.0.0.1';

View File

@ -195,7 +195,7 @@ let $master_pos= `SELECT $master_pos + 1`;
--connection slave --connection slave
--source include/stop_slave.inc --source include/stop_slave.inc
--replace_regex /[0-9]+/MASTER_POS/ --replace_regex /[0-9]+/MASTER_POS/
eval CHANGE MASTER TO master_log_pos=$master_pos; eval CHANGE MASTER TO master_log_pos=$master_pos, master_use_gtid=no;
START SLAVE; START SLAVE;
# ER_MASTER_FATAL_ERROR_READING_BINLOG 1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG 1236

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
create table t1 (n int not null auto_increment primary key); create table t1 (n int not null auto_increment primary key);
insert into t1 values(NULL); insert into t1 values(NULL);
insert into t1 values(2); insert into t1 values(2);

View File

@ -38,6 +38,8 @@ id
==== Clean up ==== ==== Clean up ====
stop slave sql_thread; stop slave sql_thread;
include/cleanup_fake_relay_log.inc include/cleanup_fake_relay_log.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
DROP TABLE t1, t2; DROP TABLE t1, t2;
DROP PROCEDURE p1; DROP PROCEDURE p1;
DROP PROCEDURE p2; DROP PROCEDURE p2;

View File

@ -14,4 +14,6 @@ include/wait_for_slave_sql_error.inc [errno=1594]
Last_SQL_Error = Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MariaDB code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave. Last_SQL_Error = Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MariaDB code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.
==== Clean up ==== ==== Clean up ====
include/cleanup_fake_relay_log.inc include/cleanup_fake_relay_log.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
include/rpl_end.inc include/rpl_end.inc

View File

@ -232,6 +232,9 @@ connection master;
####################################################################### #######################################################################
include/rpl_reset.inc include/rpl_reset.inc
connection slave; connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*"); call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*");
call mtr.add_suppression("Error writing file .*"); call mtr.add_suppression("Error writing file .*");
call mtr.add_suppression("Could not use .*"); call mtr.add_suppression("Could not use .*");
@ -277,5 +280,7 @@ include/stop_slave_sql.inc
Warnings: Warnings:
Note 1255 Slave already has been stopped Note 1255 Slave already has been stopped
RESET SLAVE; RESET SLAVE;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
RESET MASTER; RESET MASTER;
include/rpl_end.inc include/rpl_end.inc

View File

@ -2,6 +2,9 @@ include/master-slave.inc
[connection master] [connection master]
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
include/stop_slave.inc
connection master; connection master;
call mtr.add_suppression("Error in Log_event::read_log_event()"); call mtr.add_suppression("Error in Log_event::read_log_event()");
include/rpl_stop_server.inc [server_number=1] include/rpl_stop_server.inc [server_number=1]
@ -10,7 +13,9 @@ show binlog events;
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error
connection slave; connection slave;
call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log"); call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log");
reset slave; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
start slave; start slave;
include/wait_for_slave_param.inc [Last_IO_Errno] include/wait_for_slave_param.inc [Last_IO_Errno]
Last_IO_Errno = '1236' Last_IO_Errno = '1236'
@ -20,6 +25,8 @@ reset master;
connection slave; connection slave;
stop slave; stop slave;
reset slave; reset slave;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
drop table if exists t; drop table if exists t;
reset master; reset master;
End of the tests End of the tests

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
call mtr.add_suppression('Slave can not handle replication events with the checksum that master is configured to log'); call mtr.add_suppression('Slave can not handle replication events with the checksum that master is configured to log');
call mtr.add_suppression('Replication event checksum verification failed'); call mtr.add_suppression('Replication event checksum verification failed');
call mtr.add_suppression('Relay log write failure: could not queue event from master'); call mtr.add_suppression('Relay log write failure: could not queue event from master');
@ -122,7 +127,9 @@ must be zero
0 0
connection slave; connection slave;
stop slave; stop slave;
reset slave; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE"); set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE");
flush logs; flush logs;
connection master; connection master;

View File

@ -184,6 +184,8 @@ connection server_3;
RESET MASTER; RESET MASTER;
connection server_4; connection server_4;
RESET SLAVE; RESET SLAVE;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
include/rpl_change_topology.inc [new topology=1->2->3->4->1] include/rpl_change_topology.inc [new topology=1->2->3->4->1]
include/start_slave.inc include/start_slave.inc
connection server_3; connection server_3;

View File

@ -6,7 +6,7 @@ DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
RESET SLAVE; include/reset_slave.inc
SET @saved_slave_type_conversions = @@slave_type_conversions; SET @saved_slave_type_conversions = @@slave_type_conversions;
SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY'; SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY';
CREATE TABLE t1 ( CREATE TABLE t1 (

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
call mtr.add_suppression('Found invalid event in binary log'); call mtr.add_suppression('Found invalid event in binary log');
call mtr.add_suppression('Slave I/O: Relay log write failure: could not queue event from master'); call mtr.add_suppression('Slave I/O: Relay log write failure: could not queue event from master');
call mtr.add_suppression('event read from binlog did not pass crc check'); call mtr.add_suppression('event read from binlog did not pass crc check');

View File

@ -16,5 +16,7 @@ zero
==== Clean up ==== ==== Clean up ====
include/stop_slave_sql.inc include/stop_slave_sql.inc
include/cleanup_fake_relay_log.inc include/cleanup_fake_relay_log.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
drop table t1, t3; drop table t1, t3;
include/rpl_end.inc include/rpl_end.inc

View File

@ -63,7 +63,7 @@ include/check_slave_is_running.inc
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
DELETE FROM t2; DELETE FROM t2;
CHANGE MASTER TO MASTER_LOG_POS=<master_pos_begin>; CHANGE MASTER TO MASTER_LOG_POS=<master_pos_begin>, MASTER_USE_GTID=NO;
BEGIN; BEGIN;
SELECT * FROM t1 FOR UPDATE; SELECT * FROM t1 FOR UPDATE;
a a
@ -95,7 +95,7 @@ Warnings:
Warning 1292 Truncated incorrect max_relay_log_size value: '0' Warning 1292 Truncated incorrect max_relay_log_size value: '0'
include/stop_slave.inc include/stop_slave.inc
DELETE FROM t2; DELETE FROM t2;
CHANGE MASTER TO MASTER_LOG_POS=<master_pos_begin>; CHANGE MASTER TO MASTER_LOG_POS=<master_pos_begin>, MASTER_USE_GTID=NO;
BEGIN; BEGIN;
SELECT * FROM t1 FOR UPDATE; SELECT * FROM t1 FOR UPDATE;
a a

View File

@ -3,6 +3,9 @@ include/master-slave.inc
call mtr.add_suppression("Unsafe statement written to the binary log using statement format"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format");
connection slave; connection slave;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format");
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master; connection master;
[on master] [on master]
CREATE TABLE t1 (a VARCHAR(100), b INT); CREATE TABLE t1 (a VARCHAR(100), b INT);
@ -153,7 +156,9 @@ CHANGE MASTER TO MASTER_DELAY = 71;
include/start_slave.inc include/start_slave.inc
# Asserted this: Delay should be 71 when we set it to 71 # Asserted this: Delay should be 71 when we set it to 71
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is changing the current value of Using_Gtid from 'No' to its default value of 'Slave_Pos'
[on master] [on master]
connection master; connection master;
RESET MASTER; RESET MASTER;

View File

@ -437,7 +437,7 @@ connection master;
** Stop and Reset Slave ** ** Stop and Reset Slave **
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
** create table slave side ** ** create table slave side **
CREATE TABLE t10 (a INT PRIMARY KEY, b BLOB, c CHAR(5) CREATE TABLE t10 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
@ -482,7 +482,7 @@ connection slave;
*** Create t11 on slave *** *** Create t11 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t11 (a INT PRIMARY KEY, b BLOB, c VARCHAR(254) CREATE TABLE t11 (a INT PRIMARY KEY, b BLOB, c VARCHAR(254)
) ENGINE='InnoDB'; ) ENGINE='InnoDB';
@ -524,7 +524,7 @@ connection slave;
*** Create t12 on slave *** *** Create t12 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t12 (a INT PRIMARY KEY, b BLOB, c BLOB CREATE TABLE t12 (a INT PRIMARY KEY, b BLOB, c BLOB
) ENGINE='InnoDB'; ) ENGINE='InnoDB';
@ -573,7 +573,7 @@ connection slave;
*** Create t14 on slave *** *** Create t14 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t14 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t14 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='InnoDB'; ) ENGINE='InnoDB';
@ -638,7 +638,7 @@ connection slave;
include/wait_for_slave_sql_error.inc [errno=1091] include/wait_for_slave_sql_error.inc [errno=1091]
Last_SQL_Error = 'Error 'Can't DROP COLUMN `c7`; check that it exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'' Last_SQL_Error = 'Error 'Can't DROP COLUMN `c7`; check that it exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
*** Drop t14 *** *** Drop t14 ***
DROP TABLE t14; DROP TABLE t14;
@ -655,7 +655,9 @@ START SLAVE;
*** Create t15 on slave *** *** Create t15 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-103. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
CREATE TABLE t15 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t15 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='InnoDB'; ) ENGINE='InnoDB';
@ -693,7 +695,9 @@ connection slave;
include/wait_for_slave_sql_error.inc [errno=1054] include/wait_for_slave_sql_error.inc [errno=1054]
Last_SQL_Error = 'Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'' Last_SQL_Error = 'Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-104. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
*** Drop t15 *** *** Drop t15 ***
DROP TABLE t15; DROP TABLE t15;
@ -710,7 +714,9 @@ START SLAVE;
*** Create t16 on slave *** *** Create t16 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-105. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
CREATE TABLE t16 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t16 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='InnoDB'; ) ENGINE='InnoDB';
@ -748,7 +754,9 @@ connection slave;
include/wait_for_slave_sql_error.inc [errno=1072] include/wait_for_slave_sql_error.inc [errno=1072]
Last_SQL_Error = 'Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'' Last_SQL_Error = 'Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-106. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
*** Drop t16 *** *** Drop t16 ***
DROP TABLE t16; DROP TABLE t16;
@ -765,7 +773,9 @@ START SLAVE;
*** Create t17 on slave *** *** Create t17 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-107. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
CREATE TABLE t17 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t17 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='InnoDB'; ) ENGINE='InnoDB';
@ -831,7 +841,7 @@ connection slave;
*** Create t18 on slave *** *** Create t18 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t18 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t18 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='InnoDB'; ) ENGINE='InnoDB';
@ -896,7 +906,7 @@ connection slave;
*** Create t5 on slave *** *** Create t5 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t5 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t5 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='InnoDB'; ) ENGINE='InnoDB';

View File

@ -437,7 +437,7 @@ connection master;
** Stop and Reset Slave ** ** Stop and Reset Slave **
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
** create table slave side ** ** create table slave side **
CREATE TABLE t10 (a INT PRIMARY KEY, b BLOB, c CHAR(5) CREATE TABLE t10 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
@ -482,7 +482,7 @@ connection slave;
*** Create t11 on slave *** *** Create t11 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t11 (a INT PRIMARY KEY, b BLOB, c VARCHAR(254) CREATE TABLE t11 (a INT PRIMARY KEY, b BLOB, c VARCHAR(254)
) ENGINE='MyISAM'; ) ENGINE='MyISAM';
@ -524,7 +524,7 @@ connection slave;
*** Create t12 on slave *** *** Create t12 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t12 (a INT PRIMARY KEY, b BLOB, c BLOB CREATE TABLE t12 (a INT PRIMARY KEY, b BLOB, c BLOB
) ENGINE='MyISAM'; ) ENGINE='MyISAM';
@ -573,7 +573,7 @@ connection slave;
*** Create t14 on slave *** *** Create t14 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t14 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t14 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='MyISAM'; ) ENGINE='MyISAM';
@ -638,7 +638,7 @@ connection slave;
include/wait_for_slave_sql_error.inc [errno=1091] include/wait_for_slave_sql_error.inc [errno=1091]
Last_SQL_Error = 'Error 'Can't DROP COLUMN `c7`; check that it exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'' Last_SQL_Error = 'Error 'Can't DROP COLUMN `c7`; check that it exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
*** Drop t14 *** *** Drop t14 ***
DROP TABLE t14; DROP TABLE t14;
@ -655,7 +655,9 @@ START SLAVE;
*** Create t15 on slave *** *** Create t15 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-103. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
CREATE TABLE t15 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t15 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='MyISAM'; ) ENGINE='MyISAM';
@ -693,7 +695,9 @@ connection slave;
include/wait_for_slave_sql_error.inc [errno=1054] include/wait_for_slave_sql_error.inc [errno=1054]
Last_SQL_Error = 'Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'' Last_SQL_Error = 'Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-104. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
*** Drop t15 *** *** Drop t15 ***
DROP TABLE t15; DROP TABLE t15;
@ -710,7 +714,9 @@ START SLAVE;
*** Create t16 on slave *** *** Create t16 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-105. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
CREATE TABLE t16 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t16 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='MyISAM'; ) ENGINE='MyISAM';
@ -748,7 +754,9 @@ connection slave;
include/wait_for_slave_sql_error.inc [errno=1072] include/wait_for_slave_sql_error.inc [errno=1072]
Last_SQL_Error = 'Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'' Last_SQL_Error = 'Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-106. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
*** Drop t16 *** *** Drop t16 ***
DROP TABLE t16; DROP TABLE t16;
@ -765,7 +773,9 @@ START SLAVE;
*** Create t17 on slave *** *** Create t17 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-107. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
CREATE TABLE t17 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t17 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='MyISAM'; ) ENGINE='MyISAM';
@ -831,7 +841,7 @@ connection slave;
*** Create t18 on slave *** *** Create t18 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t18 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t18 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='MyISAM'; ) ENGINE='MyISAM';
@ -896,7 +906,7 @@ connection slave;
*** Create t5 on slave *** *** Create t5 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t5 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5) CREATE TABLE t5 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
) ENGINE='MyISAM'; ) ENGINE='MyISAM';

View File

@ -5,7 +5,7 @@ call mtr.add_suppression("Slave SQL.*Column [0-9] of table .test.t[0-9]*. cannot
**** Diff Table Def Start **** **** Diff Table Def Start ****
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
SET @saved_slave_type_conversions = @@slave_type_conversions; SET @saved_slave_type_conversions = @@slave_type_conversions;
SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY'; SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY';
CREATE TABLE t1 (a INT, b INT PRIMARY KEY, c CHAR(20), CREATE TABLE t1 (a INT, b INT PRIMARY KEY, c CHAR(20),
@ -42,7 +42,7 @@ DROP TABLE t1;
connection slave; connection slave;
*** Create t2 on slave *** *** Create t2 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5), CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -66,7 +66,9 @@ START SLAVE;
include/wait_for_slave_sql_error.inc [errno=1677] include/wait_for_slave_sql_error.inc [errno=1677]
Last_SQL_Error = 'Column 2 of table 'test.t2' cannot be converted from type 'char(10 octets)' to type 'char(5 octets) character set latin1'' Last_SQL_Error = 'Column 2 of table 'test.t2' cannot be converted from type 'char(10 octets)' to type 'char(5 octets) character set latin1''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-4. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
SELECT * FROM t2 ORDER BY a; SELECT * FROM t2 ORDER BY a;
a b c d e a b c d e
connection master; connection master;
@ -79,7 +81,7 @@ DROP TABLE t2;
connection slave; connection slave;
*** Create t3 on slave *** *** Create t3 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t3 (a INT, b INT PRIMARY KEY, c CHAR(20), CREATE TABLE t3 (a INT, b INT PRIMARY KEY, c CHAR(20),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -109,7 +111,7 @@ DROP TABLE t3;
connection slave; connection slave;
*** Create t4 on slave *** *** Create t4 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t4 (a INT, b INT PRIMARY KEY, c CHAR(20), CREATE TABLE t4 (a INT, b INT PRIMARY KEY, c CHAR(20),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -138,7 +140,7 @@ DROP TABLE t4;
connection slave; connection slave;
*** Create t5 on slave *** *** Create t5 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t5 (a INT PRIMARY KEY, b CHAR(5), CREATE TABLE t5 (a INT PRIMARY KEY, b CHAR(5),
c FLOAT, d INT, e DOUBLE, c FLOAT, d INT, e DOUBLE,
f DECIMAL(8,2))ENGINE='InnoDB'; f DECIMAL(8,2))ENGINE='InnoDB';
@ -167,7 +169,7 @@ DROP TABLE t5;
connection slave; connection slave;
*** Create t6 on slave *** *** Create t6 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t6 (a INT PRIMARY KEY, b CHAR(5), CREATE TABLE t6 (a INT PRIMARY KEY, b CHAR(5),
c FLOAT, d INT)ENGINE='InnoDB'; c FLOAT, d INT)ENGINE='InnoDB';
*** Create t6 on Master *** *** Create t6 on Master ***
@ -198,7 +200,7 @@ connection slave;
**** Extra Colums Start **** **** Extra Colums Start ****
*** Create t7 on slave *** *** Create t7 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t7 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t7 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00', d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
e CHAR(20) DEFAULT 'Extra Column Testing') e CHAR(20) DEFAULT 'Extra Column Testing')
@ -234,7 +236,7 @@ DROP TABLE t7;
connection slave; connection slave;
*** Create t8 on slave *** *** Create t8 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t8 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t8 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00', d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
e INT)ENGINE='InnoDB'; e INT)ENGINE='InnoDB';
@ -256,7 +258,7 @@ connection master;
DROP TABLE t8; DROP TABLE t8;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
ON UPDATE CURRENT_TIMESTAMP, ON UPDATE CURRENT_TIMESTAMP,
@ -289,7 +291,7 @@ DROP TABLE t9;
connection slave; connection slave;
*** Create t10 on slave *** *** Create t10 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t10 (a INT KEY, b BLOB, f DOUBLE DEFAULT '233', CREATE TABLE t10 (a INT KEY, b BLOB, f DOUBLE DEFAULT '233',
c CHAR(5), e INT DEFAULT '1')ENGINE='InnoDB'; c CHAR(5), e INT DEFAULT '1')ENGINE='InnoDB';
*** Create t10 on Master *** *** Create t10 on Master ***
@ -317,7 +319,7 @@ DROP TABLE t10;
connection slave; connection slave;
*** Create t11 on slave *** *** Create t11 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t11 (a INT KEY, b BLOB, f INT, CREATE TABLE t11 (a INT KEY, b BLOB, f INT,
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='InnoDB'; c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='InnoDB';
*** Create t11 on Master *** *** Create t11 on Master ***
@ -345,7 +347,7 @@ DROP TABLE t11;
connection slave; connection slave;
*** Create t12 on slave *** *** Create t12 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t12 (a INT KEY, b BLOB, f TEXT, CREATE TABLE t12 (a INT KEY, b BLOB, f TEXT,
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='InnoDB'; c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='InnoDB';
*** Create t12 on Master *** *** Create t12 on Master ***
@ -381,7 +383,7 @@ connection slave;
*** BUG 22177 Start *** *** BUG 22177 Start ***
*** Create t13 on slave *** *** Create t13 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t13 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t13 (a INT KEY, b BLOB, c CHAR(5),
d INT DEFAULT '1', d INT DEFAULT '1',
e TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP e TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -419,7 +421,7 @@ connection slave;
*** Alter Master Table Testing Start *** *** Alter Master Table Testing Start ***
*** Create t14 on slave *** *** Create t14 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t14 (c1 INT KEY, c4 BLOB, c5 CHAR(5), CREATE TABLE t14 (c1 INT KEY, c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -455,7 +457,7 @@ c1 c2 c3 c4 c5 c6 c7
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP 3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
*** Create t14a on slave *** *** Create t14a on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t14a (c1 INT KEY, c4 BLOB, c5 CHAR(5), CREATE TABLE t14a (c1 INT KEY, c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -488,7 +490,7 @@ c1 c4 c5 c6 c7
2 b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP 2 b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
3 b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP 3 b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
*** Master Drop c5 *** *** Master Drop c5 ***
connection master; connection master;
ALTER TABLE t14a DROP COLUMN c5; ALTER TABLE t14a DROP COLUMN c5;
@ -547,7 +549,7 @@ DROP TABLE t14;
connection slave; connection slave;
*** Create t15 on slave *** *** Create t15 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t15 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT, CREATE TABLE t15 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
c4 BLOB, c5 CHAR(5), c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
@ -615,7 +617,7 @@ DROP TABLE t15;
connection slave; connection slave;
*** Create t16 on slave *** *** Create t16 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t16 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT, CREATE TABLE t16 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
c4 BLOB, c5 CHAR(5), c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
@ -687,7 +689,7 @@ connection slave;
*** Alter Master End *** *** Alter Master End ***
*** Create t17 on slave *** *** Create t17 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t17 (a SMALLINT, b INT PRIMARY KEY, c CHAR(5), CREATE TABLE t17 (a SMALLINT, b INT PRIMARY KEY, c CHAR(5),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')

View File

@ -5,7 +5,7 @@ call mtr.add_suppression("Slave SQL.*Column [0-9] of table .test.t[0-9]*. cannot
**** Diff Table Def Start **** **** Diff Table Def Start ****
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
SET @saved_slave_type_conversions = @@slave_type_conversions; SET @saved_slave_type_conversions = @@slave_type_conversions;
SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY'; SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY';
CREATE TABLE t1 (a INT, b INT PRIMARY KEY, c CHAR(20), CREATE TABLE t1 (a INT, b INT PRIMARY KEY, c CHAR(20),
@ -42,7 +42,7 @@ DROP TABLE t1;
connection slave; connection slave;
*** Create t2 on slave *** *** Create t2 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5), CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -66,7 +66,9 @@ START SLAVE;
include/wait_for_slave_sql_error.inc [errno=1677] include/wait_for_slave_sql_error.inc [errno=1677]
Last_SQL_Error = 'Column 2 of table 'test.t2' cannot be converted from type 'char(10 octets)' to type 'char(5 octets) character set latin1'' Last_SQL_Error = 'Column 2 of table 'test.t2' cannot be converted from type 'char(10 octets)' to type 'char(5 octets) character set latin1''
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-4. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
SELECT * FROM t2 ORDER BY a; SELECT * FROM t2 ORDER BY a;
a b c d e a b c d e
connection master; connection master;
@ -79,7 +81,7 @@ DROP TABLE t2;
connection slave; connection slave;
*** Create t3 on slave *** *** Create t3 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t3 (a INT, b INT PRIMARY KEY, c CHAR(20), CREATE TABLE t3 (a INT, b INT PRIMARY KEY, c CHAR(20),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -109,7 +111,7 @@ DROP TABLE t3;
connection slave; connection slave;
*** Create t4 on slave *** *** Create t4 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t4 (a INT, b INT PRIMARY KEY, c CHAR(20), CREATE TABLE t4 (a INT, b INT PRIMARY KEY, c CHAR(20),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')
@ -138,7 +140,7 @@ DROP TABLE t4;
connection slave; connection slave;
*** Create t5 on slave *** *** Create t5 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t5 (a INT PRIMARY KEY, b CHAR(5), CREATE TABLE t5 (a INT PRIMARY KEY, b CHAR(5),
c FLOAT, d INT, e DOUBLE, c FLOAT, d INT, e DOUBLE,
f DECIMAL(8,2))ENGINE='MyISAM'; f DECIMAL(8,2))ENGINE='MyISAM';
@ -167,7 +169,7 @@ DROP TABLE t5;
connection slave; connection slave;
*** Create t6 on slave *** *** Create t6 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t6 (a INT PRIMARY KEY, b CHAR(5), CREATE TABLE t6 (a INT PRIMARY KEY, b CHAR(5),
c FLOAT, d INT)ENGINE='MyISAM'; c FLOAT, d INT)ENGINE='MyISAM';
*** Create t6 on Master *** *** Create t6 on Master ***
@ -198,7 +200,7 @@ connection slave;
**** Extra Colums Start **** **** Extra Colums Start ****
*** Create t7 on slave *** *** Create t7 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t7 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t7 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00', d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
e CHAR(20) DEFAULT 'Extra Column Testing') e CHAR(20) DEFAULT 'Extra Column Testing')
@ -234,7 +236,7 @@ DROP TABLE t7;
connection slave; connection slave;
*** Create t8 on slave *** *** Create t8 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t8 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t8 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00', d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
e INT)ENGINE='MyISAM'; e INT)ENGINE='MyISAM';
@ -256,7 +258,7 @@ connection master;
DROP TABLE t8; DROP TABLE t8;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
ON UPDATE CURRENT_TIMESTAMP, ON UPDATE CURRENT_TIMESTAMP,
@ -289,7 +291,7 @@ DROP TABLE t9;
connection slave; connection slave;
*** Create t10 on slave *** *** Create t10 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t10 (a INT KEY, b BLOB, f DOUBLE DEFAULT '233', CREATE TABLE t10 (a INT KEY, b BLOB, f DOUBLE DEFAULT '233',
c CHAR(5), e INT DEFAULT '1')ENGINE='MyISAM'; c CHAR(5), e INT DEFAULT '1')ENGINE='MyISAM';
*** Create t10 on Master *** *** Create t10 on Master ***
@ -317,7 +319,7 @@ DROP TABLE t10;
connection slave; connection slave;
*** Create t11 on slave *** *** Create t11 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t11 (a INT KEY, b BLOB, f INT, CREATE TABLE t11 (a INT KEY, b BLOB, f INT,
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='MyISAM'; c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='MyISAM';
*** Create t11 on Master *** *** Create t11 on Master ***
@ -345,7 +347,7 @@ DROP TABLE t11;
connection slave; connection slave;
*** Create t12 on slave *** *** Create t12 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t12 (a INT KEY, b BLOB, f TEXT, CREATE TABLE t12 (a INT KEY, b BLOB, f TEXT,
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='MyISAM'; c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='MyISAM';
*** Create t12 on Master *** *** Create t12 on Master ***
@ -381,7 +383,7 @@ connection slave;
*** BUG 22177 Start *** *** BUG 22177 Start ***
*** Create t13 on slave *** *** Create t13 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t13 (a INT KEY, b BLOB, c CHAR(5), CREATE TABLE t13 (a INT KEY, b BLOB, c CHAR(5),
d INT DEFAULT '1', d INT DEFAULT '1',
e TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP e TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -419,7 +421,7 @@ connection slave;
*** Alter Master Table Testing Start *** *** Alter Master Table Testing Start ***
*** Create t14 on slave *** *** Create t14 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t14 (c1 INT KEY, c4 BLOB, c5 CHAR(5), CREATE TABLE t14 (c1 INT KEY, c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -455,7 +457,7 @@ c1 c2 c3 c4 c5 c6 c7
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP 3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
*** Create t14a on slave *** *** Create t14a on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t14a (c1 INT KEY, c4 BLOB, c5 CHAR(5), CREATE TABLE t14a (c1 INT KEY, c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
@ -488,7 +490,7 @@ c1 c4 c5 c6 c7
2 b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP 2 b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
3 b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP 3 b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
*** Master Drop c5 *** *** Master Drop c5 ***
connection master; connection master;
ALTER TABLE t14a DROP COLUMN c5; ALTER TABLE t14a DROP COLUMN c5;
@ -547,7 +549,7 @@ DROP TABLE t14;
connection slave; connection slave;
*** Create t15 on slave *** *** Create t15 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t15 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT, CREATE TABLE t15 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
c4 BLOB, c5 CHAR(5), c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
@ -615,7 +617,7 @@ DROP TABLE t15;
connection slave; connection slave;
*** Create t16 on slave *** *** Create t16 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t16 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT, CREATE TABLE t16 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
c4 BLOB, c5 CHAR(5), c4 BLOB, c5 CHAR(5),
c6 INT DEFAULT '1', c6 INT DEFAULT '1',
@ -687,7 +689,7 @@ connection slave;
*** Alter Master End *** *** Alter Master End ***
*** Create t17 on slave *** *** Create t17 on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t17 (a SMALLINT, b INT PRIMARY KEY, c CHAR(5), CREATE TABLE t17 (a SMALLINT, b INT PRIMARY KEY, c CHAR(5),
d FLOAT DEFAULT '2.00', d FLOAT DEFAULT '2.00',
e CHAR(5) DEFAULT 'TEST2') e CHAR(5) DEFAULT 'TEST2')

View File

@ -377,6 +377,8 @@ a b
connection server_1; connection server_1;
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE ALL; RESET SLAVE ALL;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
connection server_2; connection server_2;
CHANGE MASTER TO master_host = '127.0.0.1', master_port = SERVER_MYPORT_1; CHANGE MASTER TO master_host = '127.0.0.1', master_port = SERVER_MYPORT_1;
include/start_slave.inc include/start_slave.inc

View File

@ -53,6 +53,8 @@ connection server_1;
include/stop_slave.inc include/stop_slave.inc
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
reset slave all; reset slave all;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
connection server_2; connection server_2;
CHANGE MASTER TO master_host = '127.0.0.1', master_port = SERVER_MYPORT_1, CHANGE MASTER TO master_host = '127.0.0.1', master_port = SERVER_MYPORT_1,
master_user = 'root', MASTER_USE_GTID=CURRENT_POS; master_user = 'root', MASTER_USE_GTID=CURRENT_POS;

View File

@ -67,6 +67,8 @@ a
11 11
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE ALL; RESET SLAVE ALL;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
INSERT INTO t1 VALUES (12); INSERT INTO t1 VALUES (12);
connection server_2; connection server_2;
INSERT INTO t1 VALUES (22); INSERT INTO t1 VALUES (22);

View File

@ -58,8 +58,8 @@ connection server_3;
include/sync_with_master_gtid.inc include/sync_with_master_gtid.inc
connection server_2; connection server_2;
STOP SLAVE; STOP SLAVE;
CHANGE MASTER TO MASTER_USE_GTID = NO, IGNORE_DOMAIN_IDS = (); CHANGE MASTER TO IGNORE_DOMAIN_IDS = ();
connection server_3; connection server_3;
STOP SLAVE; STOP SLAVE;
CHANGE MASTER TO MASTER_USE_GTID = NO, IGNORE_DOMAIN_IDS = (); CHANGE MASTER TO IGNORE_DOMAIN_IDS = ();
# End of test. # End of test.

View File

@ -46,6 +46,8 @@ a b
4 2 4 2
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; RESET SLAVE;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
INSERT INTO t1 VALUES (5, 1); INSERT INTO t1 VALUES (5, 1);
INSERT INTO t1 VALUES (6, 1); INSERT INTO t1 VALUES (6, 1);
include/save_master_gtid.inc include/save_master_gtid.inc

View File

@ -38,7 +38,7 @@ START SLAVE;
include/wait_for_slave_io_error.inc [errno=1236] include/wait_for_slave_io_error.inc [errno=1236]
include/stop_slave.inc include/stop_slave.inc
CHANGE MASTER TO master_host = '127.0.0.1', master_port = MASTER_PORT, CHANGE MASTER TO master_host = '127.0.0.1', master_port = MASTER_PORT,
MASTER_LOG_FILE="master-bin.000003", MASTER_LOG_POS=4; MASTER_LOG_FILE="master-bin.000003", MASTER_LOG_POS=4, MASTER_USE_GTID=NO;
include/start_slave.inc include/start_slave.inc
SELECT * FROM t1 ORDER BY a; SELECT * FROM t1 ORDER BY a;
a a
@ -90,6 +90,8 @@ connection server_2;
connection server_2; connection server_2;
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE ALL; RESET SLAVE ALL;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
RESET MASTER; RESET MASTER;
connection server_1; connection server_1;
RESET MASTER; RESET MASTER;
@ -119,6 +121,8 @@ connection server_2;
include/stop_slave.inc include/stop_slave.inc
DROP TABLE t1; DROP TABLE t1;
RESET SLAVE; RESET SLAVE;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
SET GLOBAL gtid_slave_pos=""; SET GLOBAL gtid_slave_pos="";
Warnings: Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-4. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-4. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
@ -145,7 +149,7 @@ a
2 2
*** Test that RESET SLAVE clears the Using_Gtid flag. *** *** Test that RESET SLAVE clears the Using_Gtid flag. ***
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
Using_Gtid = 'No' Using_Gtid = 'No'
START SLAVE; START SLAVE;
include/wait_for_slave_sql_error.inc [errno=1050] include/wait_for_slave_sql_error.inc [errno=1050]
@ -238,6 +242,9 @@ connection server_2;
include/stop_slave.inc include/stop_slave.inc
DROP TABLE t1; DROP TABLE t1;
RESET SLAVE ALL; RESET SLAVE ALL;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
CHANGE MASTER TO MASTER_USE_GTID=NO;
RESET MASTER; RESET MASTER;
SET GLOBAL gtid_slave_pos= ""; SET GLOBAL gtid_slave_pos= "";
CHANGE MASTER TO master_host='127.0.0.1', master_port=MASTER_PORT, master_user='root', master_use_gtid=no, master_log_file="", master_log_pos= 4; CHANGE MASTER TO master_host='127.0.0.1', master_port=MASTER_PORT, master_user='root', master_use_gtid=no, master_log_file="", master_log_pos= 4;

View File

@ -6,7 +6,7 @@ INSERT INTO t1 VALUES (1);
connection server_2; connection server_2;
include/stop_slave.inc include/stop_slave.inc
Master_Log_File = 'master-bin.000001' Master_Log_File = 'master-bin.000001'
Using_Gtid = 'No' Using_Gtid = 'Slave_Pos'
CHANGE MASTER TO master_use_gtid=current_pos; CHANGE MASTER TO master_use_gtid=current_pos;
FLUSH LOGS; FLUSH LOGS;
connection server_1; connection server_1;

View File

@ -1,4 +1,8 @@
include/rpl_init.inc [topology=1->2] include/rpl_init.inc [topology=1->2]
connection server_2;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection server_1; connection server_1;
ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB; ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB;
CREATE FUNCTION extract_gtid(d VARCHAR(100), s VARCHAR(100)) CREATE FUNCTION extract_gtid(d VARCHAR(100), s VARCHAR(100))
@ -199,6 +203,8 @@ include/start_slave.inc
connection server_2; connection server_2;
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE ALL; RESET SLAVE ALL;
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
RESET MASTER; RESET MASTER;
SET GLOBAL gtid_slave_pos=''; SET GLOBAL gtid_slave_pos='';
connection server_1; connection server_1;

View File

@ -14,12 +14,12 @@ connection slave;
*** Default value *** *** Default value ***
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root'; CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root';
slave_net_timeout/slave_heartbeat_timeout=2.0000 slave_net_timeout/slave_heartbeat_timeout=2.0000
RESET SLAVE; include/reset_slave.inc
*** Reset slave affect *** *** Reset slave affect ***
SET @@global.slave_net_timeout=30; SET @@global.slave_net_timeout=30;
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=5; CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=5;
RESET SLAVE; include/reset_slave.inc
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period'; SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
Variable_name Value Variable_name Value
Slave_heartbeat_period 15.000 Slave_heartbeat_period 15.000
@ -31,7 +31,7 @@ SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
Variable_name Value Variable_name Value
Slave_heartbeat_period 25.000 Slave_heartbeat_period 25.000
SET @@global.slave_net_timeout=@restore_slave_net_timeout; SET @@global.slave_net_timeout=@restore_slave_net_timeout;
RESET SLAVE; include/reset_slave.inc
*** Warning if updated slave_net_timeout < slave_heartbeat_timeout *** *** Warning if updated slave_net_timeout < slave_heartbeat_timeout ***
SET @@global.slave_net_timeout=FLOOR(SLAVE_HEARTBEAT_TIMEOUT)-1; SET @@global.slave_net_timeout=FLOOR(SLAVE_HEARTBEAT_TIMEOUT)-1;
@ -223,11 +223,15 @@ INSERT INTO t1 VALUES (1, 'on slave', NULL);
connection master; connection master;
INSERT INTO t1 VALUES (1, 'on master', NULL); INSERT INTO t1 VALUES (1, 'on master', NULL);
connection slave; connection slave;
set sql_log_bin= 0;
call mtr.add_suppression("Slave SQL.*Duplicate entry .1. for key .PRIMARY.. on query.* error.* 1062"); call mtr.add_suppression("Slave SQL.*Duplicate entry .1. for key .PRIMARY.. on query.* error.* 1062");
call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group"); call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group");
set sql_log_bin= 1;
Heartbeat events are received while sql thread stopped (1 means 'yes'): 1 Heartbeat events are received while sql thread stopped (1 means 'yes'): 1
include/stop_slave.inc include/stop_slave.inc
set sql_log_bin= 0;
DROP TABLE t1; DROP TABLE t1;
set sql_log_bin= 1;
*** Master send to slave *** *** Master send to slave ***
connection master; connection master;
@ -240,7 +244,9 @@ END|
Warnings: Warnings:
Warning 1105 Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it. Warning 1105 Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it.
connection slave; connection slave;
RESET SLAVE; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-2. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=5; CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=5;
include/start_slave.inc include/start_slave.inc
connection master; connection master;
@ -256,8 +262,10 @@ connection slave;
*** Flush logs on slave *** *** Flush logs on slave ***
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
set sql_log_bin= 0;
DROP TABLE t1; DROP TABLE t1;
set sql_log_bin= 1;
connection master; connection master;
DROP TABLE t1; DROP TABLE t1;
RESET MASTER; RESET MASTER;
@ -271,7 +279,7 @@ connection master;
SET @@global.slave_compressed_protocol=1; SET @@global.slave_compressed_protocol=1;
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
SET @@global.slave_compressed_protocol=1; SET @@global.slave_compressed_protocol=1;
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.1; CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.1;
include/start_slave.inc include/start_slave.inc
@ -283,7 +291,7 @@ SET @@global.slave_compressed_protocol=0;
*** Reset master *** *** Reset master ***
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.1; CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.1;
include/start_slave.inc include/start_slave.inc
connection master; connection master;
@ -294,7 +302,7 @@ Heartbeat events are received after reset of master (1 means 'yes'): 1
*** Reload master *** *** Reload master ***
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.1; CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.1;
include/start_slave.inc include/start_slave.inc
Heartbeat event received Heartbeat event received

View File

@ -15,7 +15,8 @@ MASTER_LOG_FILE='MASTER_BINLOG',
MASTER_SSL=1, MASTER_SSL=1,
MASTER_SSL_CA='MYSQL_TEST_DIR/std_data/cacert.pem', MASTER_SSL_CA='MYSQL_TEST_DIR/std_data/cacert.pem',
MASTER_SSL_CERT='MYSQL_TEST_DIR/std_data/client-cert.pem', MASTER_SSL_CERT='MYSQL_TEST_DIR/std_data/client-cert.pem',
MASTER_SSL_KEY='MYSQL_TEST_DIR/std_data/client-key.pem'; MASTER_SSL_KEY='MYSQL_TEST_DIR/std_data/client-key.pem',
MASTER_USE_GTID=NO;
include/start_slave.inc include/start_slave.inc
Master_SSL_Allowed: Yes Master_SSL_Allowed: Yes
Heartbeat event has received Heartbeat event has received

View File

@ -57,7 +57,9 @@ load data infile '../../std_data/rpl_loaddata.dat' into table t1;
connection slave; connection slave;
include/wait_for_slave_sql_error.inc [errno=1062] include/wait_for_slave_sql_error.inc [errno=1062]
stop slave; stop slave;
reset slave; include/reset_slave.inc
Warnings:
Warning 1948 Specified value for @@gtid_slave_pos contains no value for replication domain 0. This conflicts with the binary log which contains GTID 0-2-14. If MASTER_GTID_POS=CURRENT_POS is used, the binlog position will override the new value of @@gtid_slave_pos
include/check_slave_no_error.inc include/check_slave_no_error.inc
connection master; connection master;
reset master; reset master;

View File

@ -9,7 +9,7 @@ File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB> master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB>
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
change master to master_log_pos=MASTER_LOG_POS; change master to master_log_pos=MASTER_LOG_POS, master_use_gtid=no;
start slave; start slave;
include/wait_for_slave_io_error.inc [errno=1236] include/wait_for_slave_io_error.inc [errno=1236]
Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event; consider out of disk space on master; the first event 'master-bin.000001' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.'' Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event; consider out of disk space on master; the first event 'master-bin.000001' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.''
@ -23,7 +23,7 @@ drop table if exists t1;
create table t1 (n int); create table t1 (n int);
insert into t1 values (1),(2),(3); insert into t1 values (1),(2),(3);
connection slave; connection slave;
change master to master_log_pos=MASTER_LOG_POS; change master to master_log_pos=MASTER_LOG_POS, master_use_gtid=no;
start slave; start slave;
select * from t1 ORDER BY n; select * from t1 ORDER BY n;
n n

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
FLUSH LOGS; FLUSH LOGS;
CREATE TABLE t1(c1 INT); CREATE TABLE t1(c1 INT);
connection slave; connection slave;

View File

@ -4,6 +4,9 @@ connection master;
set @old_master_binlog_checksum= @@global.binlog_checksum; set @old_master_binlog_checksum= @@global.binlog_checksum;
connection slave; connection slave;
include/stop_slave.inc include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
include/stop_slave.inc
# Test slave with no capability gets dummy event, which is ignored. # Test slave with no capability gets dummy event, which is ignored.
set @old_dbug= @@global.debug_dbug; set @old_dbug= @@global.debug_dbug;
SET @@global.debug_dbug='+d,simulate_slave_capability_none'; SET @@global.debug_dbug='+d,simulate_slave_capability_none';

View File

@ -13,7 +13,7 @@ SET @old_engine= @@GLOBAL.default_storage_engine;
SET GLOBAL default_storage_engine=InnoDB; SET GLOBAL default_storage_engine=InnoDB;
SET @old_parallel= @@GLOBAL.slave_parallel_threads; SET @old_parallel= @@GLOBAL.slave_parallel_threads;
SET GLOBAL slave_parallel_threads=12; SET GLOBAL slave_parallel_threads=12;
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4; CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no;
include/start_slave.inc include/start_slave.inc
connection master; connection master;
SET SQL_LOG_BIN=0; SET SQL_LOG_BIN=0;

View File

@ -31,7 +31,7 @@ a b c
2 2 3 2 2 3
stop slave; stop slave;
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
reset slave; include/reset_slave.inc
connection master; connection master;
reset master; reset master;
drop table t1; drop table t1;
@ -191,7 +191,7 @@ a b c
2 2 3 2 2 3
stop slave; stop slave;
include/wait_for_slave_to_stop.inc include/wait_for_slave_to_stop.inc
reset slave; include/reset_slave.inc
connection master; connection master;
reset master; reset master;
drop table t1; drop table t1;

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
CHANGE MASTER TO MASTER_USE_GTID=NO;
include/start_slave.inc
connection master;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
SET GLOBAL max_binlog_cache_size = 4096; SET GLOBAL max_binlog_cache_size = 4096;
SET GLOBAL binlog_cache_size = 4096; SET GLOBAL binlog_cache_size = 4096;

View File

@ -10,7 +10,7 @@ connection master;
include/rpl_stop_server.inc [server_number=1] include/rpl_stop_server.inc [server_number=1]
include/rpl_start_server.inc [server_number=1] include/rpl_start_server.inc [server_number=1]
connection slave; connection slave;
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4; CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no;
include/start_slave.inc include/start_slave.inc
connection master; connection master;
connection slave; connection slave;

View File

@ -10,7 +10,7 @@ connection master;
include/rpl_stop_server.inc [server_number=1] include/rpl_stop_server.inc [server_number=1]
include/rpl_start_server.inc [server_number=1] include/rpl_start_server.inc [server_number=1]
connection slave; connection slave;
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4; CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no;
include/start_slave.inc include/start_slave.inc
connection master; connection master;
connection slave; connection slave;

View File

@ -8,7 +8,7 @@ include/rpl_start_server.inc [server_number=1]
connection slave; connection slave;
SET @old_parallel= @@GLOBAL.slave_parallel_threads; SET @old_parallel= @@GLOBAL.slave_parallel_threads;
SET GLOBAL slave_parallel_threads=10; SET GLOBAL slave_parallel_threads=10;
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4; CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no;
FLUSH TABLES WITH READ LOCK; FLUSH TABLES WITH READ LOCK;
include/start_slave.inc include/start_slave.inc
include/wait_for_slave_param.inc [Seconds_Behind_Master] include/wait_for_slave_param.inc [Seconds_Behind_Master]

View File

@ -55,6 +55,7 @@ connection slave;
include/stop_slave.inc include/stop_slave.inc
reset slave; reset slave;
reset master; reset master;
set @@global.gtid_slave_pos= "";
set @saved_slave_trans_retry_interval= @@GLOBAL.slave_transaction_retry_interval; set @saved_slave_trans_retry_interval= @@GLOBAL.slave_transaction_retry_interval;
set global slave_transaction_retry_interval=1; set global slave_transaction_retry_interval=1;
include/start_slave.inc include/start_slave.inc

View File

@ -6,7 +6,7 @@ DROP TABLE t1;
connection slave; connection slave;
==== Check that we can understand the new format of relay-log.info ==== ==== Check that we can understand the new format of relay-log.info ====
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
# Read relay-log.info # Read relay-log.info
START SLAVE IO_THREAD; START SLAVE IO_THREAD;
include/wait_for_slave_io_to_start.inc include/wait_for_slave_io_to_start.inc

View File

@ -6,7 +6,7 @@ DROP TABLE t1;
connection slave; connection slave;
==== Check that we still understand the old format of relay-log.info ==== ==== Check that we still understand the old format of relay-log.info ====
include/stop_slave.inc include/stop_slave.inc
RESET SLAVE; include/reset_slave.inc
# Read relay-log.info # Read relay-log.info
START SLAVE IO_THREAD; START SLAVE IO_THREAD;
include/wait_for_slave_io_to_start.inc include/wait_for_slave_io_to_start.inc

View File

@ -22,7 +22,7 @@ START SLAVE;
ERROR HY000: Could not initialize master info structure for ''; more error messages can be found in the MariaDB error log ERROR HY000: Could not initialize master info structure for ''; more error messages can be found in the MariaDB error log
START SLAVE; START SLAVE;
ERROR HY000: Could not initialize master info structure for ''; more error messages can be found in the MariaDB error log ERROR HY000: Could not initialize master info structure for ''; more error messages can be found in the MariaDB error log
RESET SLAVE; include/reset_slave.inc
DROP TABLE t1; DROP TABLE t1;
START SLAVE UNTIL MASTER_LOG_FILE= 'MASTER_LOG_FILE', MASTER_LOG_POS= MASTER_LOG_POS;; START SLAVE UNTIL MASTER_LOG_FILE= 'MASTER_LOG_FILE', MASTER_LOG_POS= MASTER_LOG_POS;;
include/wait_for_slave_sql_to_stop.inc include/wait_for_slave_sql_to_stop.inc

View File

@ -6,7 +6,7 @@ connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
connection master; connection master;
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)

View File

@ -11,7 +11,7 @@ Warnings:
Note 1051 Unknown table 'test.t1' Note 1051 Unknown table 'test.t1'
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
CREATE TABLE t1 (a DECIMAL(5,2)); CREATE TABLE t1 (a DECIMAL(5,2));
connection master; connection master;
CREATE TABLE t1 (a DECIMAL(20, 10)); CREATE TABLE t1 (a DECIMAL(20, 10));
@ -25,7 +25,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -34,7 +36,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a DECIMAL(27, 9)); CREATE TABLE t1 (a DECIMAL(27, 9));
connection master; connection master;
CREATE TABLE t1 (a DECIMAL(27, 18)); CREATE TABLE t1 (a DECIMAL(27, 18));
@ -48,7 +52,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -57,7 +63,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a NUMERIC(5,2)); CREATE TABLE t1 (a NUMERIC(5,2));
connection master; connection master;
CREATE TABLE t1 (a NUMERIC(20, 10)); CREATE TABLE t1 (a NUMERIC(20, 10));
@ -71,7 +79,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -81,7 +91,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a FLOAT(20)); CREATE TABLE t1 (a FLOAT(20));
connection master; connection master;
CREATE TABLE t1 (a FLOAT(47)); CREATE TABLE t1 (a FLOAT(47));
@ -95,7 +107,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -105,7 +119,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a BIT(5)); CREATE TABLE t1 (a BIT(5));
connection master; connection master;
CREATE TABLE t1 (a BIT(64)); CREATE TABLE t1 (a BIT(64));
@ -119,7 +135,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -128,7 +146,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a BIT(11)); CREATE TABLE t1 (a BIT(11));
connection master; connection master;
CREATE TABLE t1 (a BIT(12)); CREATE TABLE t1 (a BIT(12));
@ -142,7 +162,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -152,7 +174,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a SET('4')); CREATE TABLE t1 (a SET('4'));
connection master; connection master;
CREATE TABLE t1 (a SET('1','2','3','4','5','6','7','8','9')); CREATE TABLE t1 (a SET('1','2','3','4','5','6','7','8','9'));
@ -166,7 +190,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -176,7 +202,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a CHAR(10)); CREATE TABLE t1 (a CHAR(10));
connection master; connection master;
CREATE TABLE t1 (a CHAR(20)); CREATE TABLE t1 (a CHAR(20));
@ -190,7 +218,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -200,7 +230,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a ENUM('44','54')); CREATE TABLE t1 (a ENUM('44','54'));
connection master; connection master;
CREATE TABLE t1 (a ENUM( CREATE TABLE t1 (a ENUM(
@ -245,7 +277,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -255,7 +289,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a VARCHAR(100)); CREATE TABLE t1 (a VARCHAR(100));
connection master; connection master;
CREATE TABLE t1 (a VARCHAR(2000)); CREATE TABLE t1 (a VARCHAR(2000));
@ -269,7 +305,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -278,7 +316,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a VARCHAR(10)); CREATE TABLE t1 (a VARCHAR(10));
connection master; connection master;
CREATE TABLE t1 (a VARCHAR(200)); CREATE TABLE t1 (a VARCHAR(200));
@ -292,7 +332,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -301,7 +343,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a VARCHAR(1000)); CREATE TABLE t1 (a VARCHAR(1000));
connection master; connection master;
CREATE TABLE t1 (a VARCHAR(2000)); CREATE TABLE t1 (a VARCHAR(2000));
@ -315,7 +359,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;
@ -325,7 +371,9 @@ connection master;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
CREATE TABLE t1 (a TINYBLOB); CREATE TABLE t1 (a TINYBLOB);
connection master; connection master;
CREATE TABLE t1 (a LONGBLOB); CREATE TABLE t1 (a LONGBLOB);
@ -339,7 +387,9 @@ SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
0 0
STOP SLAVE; STOP SLAVE;
RESET SLAVE; include/reset_slave.inc
Warnings:
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
connection master; connection master;
RESET MASTER; RESET MASTER;
connection slave; connection slave;

View File

@ -1,5 +1,10 @@
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
connection slave;
include/stop_slave.inc
change master to master_use_gtid=no;
include/start_slave.inc
connection master;
create table t1 (a int) ENGINE=MyISAM; create table t1 (a int) ENGINE=MyISAM;
insert into t1 values (10); insert into t1 values (10);
create table t2 (a int) ENGINE=MyISAM; create table t2 (a int) ENGINE=MyISAM;

Some files were not shown because too many files have changed in this diff Show More