64 lines
2.4 KiB
Plaintext
64 lines
2.4 KiB
Plaintext
#Want to skip this test from daily Valgrind execution
|
|
--source include/no_valgrind_without_big.inc
|
|
|
|
# Needed because test uses CREATE TEMPORARY/DROP TEMPORARY inside transaction
|
|
source include/master-slave.inc;
|
|
source include/have_debug.inc;
|
|
source include/have_debug_sync.inc;
|
|
# 72475 renders this case irrelevant for mixed mode as temp tables are no
|
|
# longer replicated to the slave.
|
|
source include/have_binlog_format_statement.inc;
|
|
|
|
--echo
|
|
--echo # BUG#56118 STOP SLAVE does not wait till trx with CREATE TMP TABLE ends
|
|
--echo #
|
|
--echo # If a temporary table is created or dropped, the transaction should be
|
|
--echo # regarded similarly that a non-transactional table is modified. So
|
|
--echo # STOP SLAVE should wait until the transaction has finished.
|
|
|
|
CREATE TABLE t1(c1 INT) ENGINE=XENGINE;
|
|
CREATE TABLE t2(c1 INT) ENGINE=XENGINE;
|
|
|
|
--source include/sync_slave_sql_with_master.inc
|
|
SET DEBUG_SYNC= 'RESET';
|
|
source include/stop_slave.inc;
|
|
|
|
--echo
|
|
--echo # Suspend the INSERT statement in current transaction on SQL thread.
|
|
--echo # It guarantees that SQL thread is applying the transaction when
|
|
--echo # STOP SLAVE command launchs.
|
|
let $debug_save= `SELECT @@GLOBAL.debug`;
|
|
SET GLOBAL debug= 'd,after_mysql_insert';
|
|
source include/start_slave.inc;
|
|
|
|
--echo
|
|
--echo # CREATE TEMPORARY TABLE with InnoDB engine
|
|
--echo # -----------------------------------------
|
|
let $tmp_table_stm= CREATE TEMPORARY TABLE tt1(c1 INT) ENGINE=INNODB;
|
|
source extra/rpl_tests/rpl_stop_slave.test;
|
|
|
|
--echo
|
|
--echo # CREATE TEMPORARY TABLE ... SELECT with InnoDB engine
|
|
--echo # ----------------------------------------------------
|
|
let $tmp_table_stm= CREATE TEMPORARY TABLE tt1(c1 INT) ENGINE=INNODB
|
|
SELECT c1 FROM t2;
|
|
source extra/rpl_tests/rpl_stop_slave.test;
|
|
|
|
# Don't need to verify 'CREATE TEMPORARY TABLE' with MyIASM engine, as it
|
|
# never is binlogged into a transaction since 5.5.
|
|
|
|
--echo
|
|
--echo # Test end
|
|
SET GLOBAL debug= '$debug_save';
|
|
source include/restart_slave_sql.inc;
|
|
|
|
connection slave;
|
|
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("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
|
|
connection master;
|
|
|
|
--source include/rpl_connection_master.inc
|
|
DROP TABLE t1, t2;
|
|
|
|
--source include/rpl_end.inc
|