mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
763f105dff
(Removes some warnings about UNIX_TIMESTAMP from the slave.err logs) Marked federated_server as a '--big-test' Change error in net_clear to 'Note', as it interfered with mysql-test-run. client/mysqltest.c: More DBUG messages Adding missing DBUG_RETURN mysql-test/extra/rpl_tests/rpl_max_relay_size.test: Added missing sync_slave_with_master mysql-test/extra/rpl_tests/rpl_relayrotate.test: Added missing sync_slave_with_master mysql-test/include/federated.inc: Don't do stop slave before the slave has started properly (Removes some warnings about UNIX_TIMESTAMP from the slave.err logs) mysql-test/include/federated_cleanup.inc: Trivial cleanup mysql-test/t/federated_server.test: Don't run this unless under --big-test Made test-loop smaller. (We will find out errors in code over time, as the test is run under a lot of difference machines which will compensate for the smaller loop) mysql-test/t/rpl_flushlog_loop.test: Added missing sync_slave_with_master sql/net_serv.cc: Change error to Note (low level warning), as it interfered with mysql-test-run. This is probably fine as we in some context on sever shutdown can get information about connection shutdown on the connection while we are doing a query at the same time. Still, in normal context one should get this, so it's good to have it in the log as it enables one to find errors easier. sql/slave.cc: Added reason to why things failed to error message
50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
# Testing if "flush logs" command bouncing resulting in logs created in a loop
|
|
# in case of bi-directional replication
|
|
-- source include/master-slave.inc
|
|
|
|
#
|
|
# Start replication master -> slave
|
|
#
|
|
# We have to sync with master, to ensure slave had time to start properly
|
|
# before we stop it. If not, we get errors about UNIX_TIMESTAMP() in the log.
|
|
sync_slave_with_master;
|
|
connection slave;
|
|
--disable_warnings
|
|
stop slave;
|
|
--enable_warnings
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
master_password='',master_port=$MASTER_MYPORT;
|
|
start slave;
|
|
|
|
#
|
|
# Start replication slave -> master
|
|
#
|
|
connection master;
|
|
--disable_warnings
|
|
stop slave;
|
|
--enable_warnings
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
master_password='',master_port=$SLAVE_MYPORT;
|
|
start slave;
|
|
|
|
#
|
|
# Wait for start of slave IO and SQL threads
|
|
#
|
|
let $result_pattern= '%127.0.0.1%root%slave-bin.000001%slave-bin.000001%Yes%Yes%0%0%None%';
|
|
--source include/wait_slave_status.inc
|
|
|
|
#
|
|
# Flush logs of slave
|
|
#
|
|
flush logs;
|
|
sleep 5;
|
|
|
|
#
|
|
# Show status of slave
|
|
#
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
|
|
--vertical_results
|
|
SHOW SLAVE STATUS;
|