Debian Codegraph @

mysql-test/suite/rpl/t/rpl_semi_sync_replica_compressed_protocol.test

raw
1 ################################################################################
2 # Bug#26027024 REPLICA_COMPRESSED_PROTOCOL DOESN'T WORK WITH SEMI-SYNC
3 # REPLICATION IN MYSQL-5.7
4 #
5 # Steps to reproduce:
6 # 1) Set replica_compressed_protocol ON on Slave.
7 # 2) Do some sample work on Master
8 # 3) After the work is synced on Slave, check that there is no error
9 # (Read semi-sync reply magic number error) on Slave.
10 # 4) Cleanup
11 ################################################################################
12 # Test is independent of Binlog format. One of the three formats is enough
13 # for testing. Choosing 'Row' format.
14 --source include/have_binlog_format_row.inc
15 --source include/not_group_replication_plugin.inc
16 --source include/master-slave.inc
17 --source include/install_semisync.inc
18
19 # Do some sample work on Master with replica_compressed_protocol ON.
20 # (replica_compressed_protocol is set to ON in -slave.opt file of this test.)
21 CREATE TABLE t1 (i INT);
22 DROP TABLE t1;
23
24 # Make sure sync is done, so that next 'assert' step can be executed without
25 # any issues.
26 --source include/rpl_sync.inc
27
28 # Without the fix, the test would have generated few
29 # errors in the error log. With the fix, test will
30 # pass without any errors in the error log.
31 --let $assert_text= Check that there is no 'Read semi-sync reply magic number error' in error log.
32 --let $assert_select=Read semi-sync reply magic number error
33 --let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.1.err
34 --let $assert_count= 0
35 --source include/assert_grep.inc
36
37
38 # Cleanup
39 --source include/uninstall_semisync.inc
40 --source include/rpl_end.inc