1#
2# In the case if the bug is not fixed the test will crash on assert
3# in Rows_query_log_event::do_apply_event() on debug build.
4#
5--source include/have_binlog_format_row.inc
6--source include/have_gtid.inc
7--source include/not_group_replication_plugin.inc
8
9--let $rpl_topology= 1->3,3->2,1->2
10--let $rpl_multi_source= 1
11--let $use_gtids= 1
12--source include/rpl_init.inc
13
14--echo ### Create some binlog events on server_1
15--connection server_1
16CREATE TABLE t1(a INT);
17INSERT INTO t1 (a) VALUES (1), (2), (3), (4), (5);
18INSERT INTO t1 (a) VALUES (6), (7), (8), (9), (10);
19DROP TABLE t1;
20
21--echo ### sync the server_3 with server_1
22--let $rpl_connection_name= server_1
23--source include/rpl_connection.inc
24
25--let $rpl_channel_name= channel_1
26--let $sync_slave_connection= server_3
27--source include/sync_slave_sql_with_master.inc
28
29--echo ### sync the server_2 with server_3
30--let $rpl_connection_name= server_3
31--source include/rpl_connection.inc
32
33--let $rpl_channel_name= channel_3
34--let $sync_slave_connection=server_2
35--source include/sync_slave_sql_with_master.inc
36
37--echo ### sync the server_2 with server_1
38--echo ### here crash must take place if the bug is not fixed
39--let $rpl_connection_name= server_1
40--source include/rpl_connection.inc
41
42--let $rpl_channel_name= channel_1
43--let $sync_slave_connection= server_2
44--source include/sync_slave_sql_with_master.inc
45
46--echo ### finish replication
47--let $rpl_connection_name= server_1
48--source include/rpl_connection.inc
49
50--let $rpl_skip_sync= 1
51--source include/rpl_end.inc
52