mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Test suites for engine testing, moved from test-extra so will be available
for general use. mysql-test/Makefile.am: Adding directories of additional test suites mysql-test/mysql-stress-test.pl: Adding check for additional errors checking during test run
This commit is contained in:
48
mysql-test/suite/engines/funcs/t/rpl_flushlog_loop.test
Normal file
48
mysql-test/suite/engines/funcs/t/rpl_flushlog_loop.test
Normal file
@ -0,0 +1,48 @@
|
||||
# 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
|
||||
#
|
||||
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 $MYSQL_TEST_DIR/suite/engines/funcs/t/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;
|
||||
STOP SLAVE;
|
Reference in New Issue
Block a user