24 changed files with 617 additions and 232 deletions
-
9mysql-test/include/galera_no_debug_sync.inc
-
15mysql-test/main/lock.result
-
18mysql-test/main/lock.test
-
61mysql-test/main/subselect4.result
-
45mysql-test/main/subselect4.test
-
11mysql-test/suite/innodb/r/default_row_format_alter.result
-
15mysql-test/suite/innodb/t/default_row_format_alter.test
-
17mysql-test/suite/rpl/r/rpl_foreign_key_innodb.result
-
19mysql-test/suite/rpl/r/rpl_semi_sync_slave_compressed_protocol.result
-
17mysql-test/suite/rpl/t/rpl_foreign_key_innodb.test
-
1mysql-test/suite/rpl/t/rpl_semi_sync_slave_compressed_protocol-slave.opt
-
55mysql-test/suite/rpl/t/rpl_semi_sync_slave_compressed_protocol.test
-
13mysql-test/suite/sql_sequence/concurrent_create.result
-
19mysql-test/suite/sql_sequence/concurrent_create.test
-
349mysql-test/suite/wsrep/r/variables.result
-
120mysql-test/suite/wsrep/t/variables.test
-
5sql/semisync_master_ack_receiver.cc
-
11sql/sql_select.cc
-
16sql/sql_table.cc
-
23storage/innobase/buf/buf0flu.cc
-
4storage/innobase/os/os0file.cc
-
2storage/innobase/row/row0merge.cc
-
2support-files/mariadb.service.in
-
2support-files/mariadb@.service.in
@ -0,0 +1,9 @@ |
|||
--disable_query_log |
|||
|
|||
--let $galera_have_debug_sync = `SELECT 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_debug_sync_waiters'` |
|||
|
|||
--if ($galera_have_debug_sync) { |
|||
--skip Test requires Galera debug library with no debug_sync functionality |
|||
} |
|||
|
|||
--enable_query_log |
@ -0,0 +1,19 @@ |
|||
include/master-slave.inc |
|||
[connection master] |
|||
SET @@GLOBAL.rpl_semi_sync_master_enabled = 1; |
|||
connection slave; |
|||
include/stop_slave.inc |
|||
SET @@GLOBAL.rpl_semi_sync_slave_enabled = 1; |
|||
include/start_slave.inc |
|||
connection master; |
|||
CREATE TABLE t1 (i INT); |
|||
DROP TABLE t1; |
|||
include/rpl_sync.inc |
|||
include/assert_grep.inc [Check that there is no 'Read semi-sync reply magic number error' in error log.] |
|||
connection master; |
|||
SET @@GLOBAL. rpl_semi_sync_master_enabled = $sav_enabled_master; |
|||
connection slave; |
|||
include/stop_slave.inc |
|||
SET @@GLOBAL. rpl_semi_sync_slave_enabled = $sav_enabled_slave; |
|||
include/start_slave.inc |
|||
include/rpl_end.inc |
@ -0,0 +1 @@ |
|||
--slave_compressed_protocol |
@ -0,0 +1,55 @@ |
|||
################################################################################ |
|||
# Bug#26027024 SLAVE_COMPRESSED_PROTOCOL DOESN'T WORK WITH SEMI-SYNC |
|||
# REPLICATION IN MYSQL-5.7 |
|||
# |
|||
# Steps to reproduce: |
|||
# 1) Set slave_compressed_protocol ON on Slave. |
|||
# 2) Do some sample work on Master |
|||
# 3) After the work is synced on Slave, check that there is no error |
|||
# (Read semi-sync reply magic number error) on Slave. |
|||
# 4) Cleanup |
|||
################################################################################ |
|||
# Test is independent of Binlog format. One of the three formats is enough |
|||
# for testing. Choosing 'Row' format. |
|||
--source include/have_binlog_format_row.inc |
|||
--source include/master-slave.inc |
|||
|
|||
--let $sav_enabled_master=`SELECT @@GLOBAL.rpl_semi_sync_master_enabled ` |
|||
SET @@GLOBAL.rpl_semi_sync_master_enabled = 1; |
|||
|
|||
--connection slave |
|||
source include/stop_slave.inc; |
|||
--let $sav_enabled_slave=`SELECT @@GLOBAL.rpl_semi_sync_slave_enabled ` |
|||
SET @@GLOBAL.rpl_semi_sync_slave_enabled = 1; |
|||
source include/start_slave.inc; |
|||
|
|||
--connection master |
|||
# Do some sample work on Master with slave_compressed_protocol ON. |
|||
# (slave_compressed_protocol is set to ON in -slave.opt file of this test.) |
|||
CREATE TABLE t1 (i INT); |
|||
DROP TABLE t1; |
|||
|
|||
# Make sure sync is done, so that next 'assert' step can be executed without |
|||
# any issues. |
|||
--source include/rpl_sync.inc |
|||
|
|||
# Without the fix, the test would have generated few |
|||
# errors in the error log. With the fix, test will |
|||
# pass without any errors in the error log. |
|||
--let $assert_text= Check that there is no 'Read semi-sync reply magic number error' in error log. |
|||
--let $assert_select=Read semi-sync reply magic number error |
|||
--let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.1.err |
|||
--let $assert_count= 0 |
|||
--let $assert_only_after = CURRENT_TEST:rpl.rpl_semi_sync_slave_compressed_protocol.test |
|||
--source include/assert_grep.inc |
|||
|
|||
--connection master |
|||
--evalp SET @@GLOBAL. rpl_semi_sync_master_enabled = $sav_enabled_master |
|||
|
|||
--connection slave |
|||
source include/stop_slave.inc; |
|||
--evalp SET @@GLOBAL. rpl_semi_sync_slave_enabled = $sav_enabled_slave |
|||
source include/start_slave.inc; |
|||
|
|||
# Cleanup |
|||
--source include/rpl_end.inc |
Write
Preview
Loading…
Cancel
Save
Reference in new issue