include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	####	Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
[connection master]
CREATE TABLE t1 (a INT);
include/sync_slave_sql_with_master.inc
include/stop_slave_sql.inc
CALL mtr.add_suppression(".*You need to use --log-bin to make --binlog-format work.*");
CALL mtr.add_suppression(".*The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state.*");
CALL mtr.add_suppression(".*The use of replication filters with XA transactions is not supported, and can lead to an undefined state in the replication slave.*");
CHANGE REPLICATION FILTER Replicate_Ignore_Table=(test.t1);
include/start_slave_sql.inc
[connection master]
XA START '1';
INSERT INTO t1 VALUES (1);
XA END '1';
XA PREPARE '1';
XA COMMIT '1';
[connection slave]
include/wait_for_slave_sql_error.inc [errno=3227]
START SLAVE SQL_THREAD;
include/wait_for_slave_sql_error.inc [errno=3227]
CHANGE REPLICATION FILTER Replicate_Ignore_Table=();
include/start_slave_sql.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/assert.inc [table 'test.t1' record count must be 1]
include/assert_grep.inc [Found error message regarding usage of replication filters with XA transactions]
[connection master]
DROP TABLE t1;
include/rpl_end.inc
