| 1 |
include/group_replication.inc [rpl_server_count=3] |
| 2 |
Warnings: |
| 3 |
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 4 |
Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information. |
| 5 |
[connection server1] |
| 6 |
[connection server1] |
| 7 |
CREATE TABLE t1(a int primary key); |
| 8 |
include/rpl_sync.inc |
| 9 |
CREATE PROCEDURE dml_operations() |
| 10 |
BEGIN |
| 11 |
declare x INT; |
| 12 |
set x=1; |
| 13 |
while x<300 do |
| 14 |
insert into t1 values (x); |
| 15 |
update t1 set a=x+300 where a=x; |
| 16 |
delete from t1 where a<310; |
| 17 |
set x=x+1; |
| 18 |
end while; |
| 19 |
end$$ |
| 20 |
|
| 21 |
----call procedure---- |
| 22 |
call dml_operations(); |
| 23 |
|
| 24 |
[connection server2] |
| 25 |
set sql_log_bin=0; |
| 26 |
call mtr.add_suppression(".*Replica SQL for channel 'group_replication_applier': ... The replica coordinator and worker threads are stopped, possibly leaving data in inconsistent state*"); |
| 27 |
call mtr.add_suppression("Error in Log_event::read_log_event()"); |
| 28 |
set sql_log_bin=1; |
| 29 |
# killing |
| 30 |
# Kill and restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group_replication_group_name=GROUP_REPLICATION_GROUP_NAME |
| 31 |
# restarting |
| 32 |
include/rpl_reconnect.inc |
| 33 |
[connection server3] |
| 34 |
# check that there are 2 members in the group |
| 35 |
include/rpl_gr_wait_for_number_of_members.inc |
| 36 |
[connection server2] |
| 37 |
include/start_group_replication.inc |
| 38 |
[connection server1] |
| 39 |
include/rpl_sync.inc |
| 40 |
include/diff_tables.inc [server1:t1, server2:t1, server3:t1] |
| 41 |
drop table t1; |
| 42 |
drop procedure dml_operations; |
| 43 |
include/group_replication_end.inc |