mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
0e679ab782
Affected tests fixing. After the fix for st_relay_log_info::wait_for_pos() that handles widely used select('master-bin.xxxx',pos) invoked by mysqltest there appeared to be four tests that either tried synchronizing when the slave was stopped or used incorrect synchronization method like to call `sync_with_master' from the current connection being to the master itself. Fixed with correcting the current connection or/and using the correct synchronization macro when possible. mysql-test/r/rpl_loaddata.result: results changed mysql-test/r/rpl_slave_status.result: results changed mysql-test/t/rpl_loaddata.test: fixing cleanup for two tests mysql-test/t/rpl_skip_error.test: fixing cleanup for two tests mysql-test/t/rpl_slave_status.test: fixing cleanup mysql-test/t/rpl_temporary.test: fixing synchronizations to use the intended correct macro.
40 lines
993 B
Text
40 lines
993 B
Text
# Test case for BUG #10780
|
|
--source include/master-slave.inc
|
|
connection master;
|
|
grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
|
|
connection slave;
|
|
stop slave;
|
|
change master to master_user='rpl',master_password='rpl';
|
|
start slave;
|
|
connection master;
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
create table t1 (n int);
|
|
insert into t1 values (1);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select * from t1;
|
|
connection master;
|
|
delete from mysql.user where user='rpl';
|
|
flush privileges;
|
|
connection slave;
|
|
stop slave;
|
|
start slave;
|
|
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
|
# Column 1 is replaced, since the output can be either
|
|
# "Connecting to master" or "Waiting for master update"
|
|
--replace_column 1 # 7 # 8 # 9 # 22 # 23 #
|
|
--vertical_results
|
|
show slave status;
|
|
|
|
# cleanup: slave io thread has been stopped "irrecoverably"
|
|
# so we clean up mess manually
|
|
|
|
connection master;
|
|
drop table t1;
|
|
connection slave;
|
|
drop table t1;
|
|
|
|
# end of 4.1 tests
|