| 1 |
# === HITTING CRASH WHEN USING SEMISYNC MODE WITH SSL OPTIONS === |
| 2 |
# |
| 3 |
# With the bug, semisync did not compile with SSL. |
| 4 |
# The following CREATE TABLE as written below crashed with |
| 5 |
# invalid memory access. |
| 6 |
--source include/not_group_replication_plugin.inc |
| 7 |
--source include/master-slave.inc |
| 8 |
--source include/have_semisync_plugin.inc |
| 9 |
--source include/install_semisync.inc |
| 10 |
|
| 11 |
call mtr.add_suppression(".*Semi-sync source failed on net_flush.*before waiting for replica reply.*"); |
| 12 |
call mtr.add_suppression(".*Timeout waiting for reply of binlog .* semi-sync up to file .*"); |
| 13 |
|
| 14 |
--source include/sync_slave_sql_with_master.inc |
| 15 |
--source include/rpl_connection_slave.inc |
| 16 |
--source include/stop_slave.inc |
| 17 |
|
| 18 |
CHANGE REPLICATION SOURCE TO SOURCE_SSL = 1; |
| 19 |
--source include/start_slave.inc |
| 20 |
|
| 21 |
--echo |
| 22 |
--echo # Try replicating CREATE TABLE and verify that everything is fine. |
| 23 |
--echo |
| 24 |
|
| 25 |
--source include/rpl_connection_master.inc |
| 26 |
USE test; |
| 27 |
CREATE TABLE table1 (a INT); |
| 28 |
--source include/sync_slave_sql_with_master.inc |
| 29 |
|
| 30 |
--echo |
| 31 |
--echo # STOP SLAVE and verify that replication works fine when slave resumes. |
| 32 |
--echo |
| 33 |
|
| 34 |
--source include/stop_slave_io.inc |
| 35 |
--source include/rpl_connection_master.inc |
| 36 |
INSERT INTO table1 VALUES(1); |
| 37 |
|
| 38 |
--source include/rpl_connection_slave.inc |
| 39 |
--source include/start_slave_io.inc |
| 40 |
|
| 41 |
--echo |
| 42 |
--echo # RE-START SLAVE and execute on master, verify that replication works fine. |
| 43 |
--echo |
| 44 |
|
| 45 |
--source include/rpl_connection_master.inc |
| 46 |
INSERT INTO table1 VALUES(2); |
| 47 |
--source include/sync_slave_sql_with_master.inc |
| 48 |
|
| 49 |
--let $assert_text= Slave should have 2 rows(1,2) |
| 50 |
--let $assert_cond= `SELECT COUNT(*)=2 from table1` |
| 51 |
--source include/assert.inc |
| 52 |
|
| 53 |
--echo |
| 54 |
--echo # Clean-up |
| 55 |
--echo |
| 56 |
|
| 57 |
--source include/rpl_connection_master.inc |
| 58 |
DROP TABLE table1; |
| 59 |
--source include/sync_slave_sql_with_master.inc |
| 60 |
|
| 61 |
--source include/uninstall_semisync.inc |
| 62 |
--source include/stop_slave.inc |
| 63 |
CHANGE REPLICATION SOURCE TO SOURCE_SSL = 0; |
| 64 |
|
| 65 |
--let $rpl_only_running_threads= 1 |
| 66 |
--source include/rpl_end.inc |