mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
2c4ca51050
BitKeeper/deleted/.del-rpl_bug33931-slave.opt: Delete: mysql-test/suite/rpl/t/rpl_bug33931-slave.opt mysql-test/include/default_mysqld.cnf: Set a default name for "log-bin" mysql-test/mysql-test-run.pl: Check for warnings in mysqld error log files after each testcase, using SQL mysql-test/lib/mtr_cases.pm: Make mtr_match into a perl module mysql-test/lib/mtr_match.pm: Make mtr_match into a perl module mysql-test/lib/mtr_report.pm: Make mtr_match into a perl module Print warnings if testcase failed from warnings mysql-test/r/information_schema.result: Be more selective which databases and tables are select in the queries mysql-test/r/mysql_upgrade.result: Update result, mysql_upgrade will check _all_ databases mysql-test/r/mysqlcheck.result: Update result, mysql_upgrade should check _all_ databases mysql-test/r/sp-destruct.result: Be more selective which databases and tables are select in the queries mysql-test/r/sp-error.result: Backup and restore mysql.proc table mysql-test/r/sp-security.result: Be more selective which databases and tables are select in the queries mysql-test/r/sp.result: Be more selective which databases and tables are select in the queries mysql-test/suite/rpl/r/rpl_bug33931.result: Move the setting of debug flag into the test file instead of in -slave.opt Add supression mysql-test/suite/rpl/r/rpl_idempotency.result: Add supression Add master-slave-end.inc mysql-test/suite/rpl/t/rpl_bug33931.test: Move the setting of debug flag into the test file instead of in -slave.opt Add supression mysql-test/suite/rpl/t/rpl_idempotency.test: Add supression Add master-slave-end.inc mysql-test/t/information_schema.test: Be more selective which databases and tables are select in the queries mysql-test/t/sp-destruct.test: Be more selective which databases and tables are select in the queries mysql-test/t/sp-error.test: Backup and restore mysql.proc table mysql-test/t/sp-security.test: Be more selective which databases and tables are select in the queries mysql-test/t/sp.test: Be more selective which databases and tables are select in the queries mysql-test/include/check-warnings.test: New BitKeeper file ``mysql-test/include/check-warnings.test'' mysql-test/include/mtr_warnings.sql: New BitKeeper file ``mysql-test/include/mtr_warnings.sql''
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# Test for
|
|
# Bug #33931 assertion at write_ignored_events_info_to_relay_log if init_slave_thread() fails
|
|
# Bug #33932 assertion at handle_slave_sql if init_slave_thread() fails
|
|
|
|
source include/have_debug.inc;
|
|
source include/have_log_bin.inc;
|
|
|
|
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
|
|
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);
|
|
|
|
|
|
connection master;
|
|
reset master;
|
|
|
|
connection slave;
|
|
|
|
# Add supression for expected warnings in slaves error log
|
|
call mtr.add_supression("Failed during slave.*thread initialization");
|
|
|
|
--disable_warnings
|
|
stop slave;
|
|
--enable_warnings
|
|
reset slave;
|
|
|
|
# Set debug flags on slave to force errors to occur
|
|
SET GLOBAL debug="d,simulate_io_slave_error_on_init,simulate_sql_slave_error_on_init";
|
|
|
|
start slave;
|
|
|
|
connection master;
|
|
save_master_pos;
|
|
connection slave;
|
|
|
|
#
|
|
# slave is going to stop because of emulated failures
|
|
# but there won't be any crashes nor asserts hit.
|
|
#
|
|
source include/wait_for_slave_to_stop.inc;
|
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
|
query_vertical show slave status;
|
|
|
|
# no clean-up is needed
|
|
|