Debian Codegraph @

mysql-test/suite/group_replication/r/gr_crash_donor_server.result

raw
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 SET sql_log_bin=0;
8 CREATE TABLE t1(a int primary key);
9 SET sql_log_bin=1;
10 include/start_and_bootstrap_group_replication.inc
11 [connection server2]
12 SET sql_log_bin=0;
13 CREATE TABLE t1(a int primary key);
14 SET sql_log_bin=1;
15 include/start_group_replication.inc
16 [connection server1]
17 CREATE PROCEDURE dml_operations()
18 BEGIN
19 declare x INT;
20 set x=1;
21 while x<100 do
22 insert into t1 values (x);
23 update t1 set a=x+200 where a=x;
24 delete from t1 where a<250;
25 set x=x+1;
26 end while;
27 end$$
28
29 ----call procedure----
30 call dml_operations();
31
32 include/rpl_sync.inc
33 [connection server3]
34 SET sql_log_bin=0;
35 CREATE TABLE t1(a int primary key);
36 SET sql_log_bin=1;
37 LOCK TABLES t1 READ;
38 [connection server_3]
39 SET SESSION sql_log_bin= 0;
40 call mtr.add_suppression("There was an error when connecting to the donor server.*");
41 call mtr.add_suppression("For details please check performance_schema.replication_connection_status table and error log messages of Replica I/O for channel group_replication_recovery.");
42 call mtr.add_suppression("Replica I/O for channel 'group_replication_recovery': Source command COM_REGISTER_REPLICA failed: failed registering on source, reconnecting to try again.*");
43 SET SESSION sql_log_bin= 1;
44 include/start_group_replication.inc
45 CREATE PROCEDURE dml_operations_2()
46 BEGIN
47 declare x INT;
48 set x=100;
49 while x<200 do
50 insert into t1 values (x);
51 update t1 set a=x+200 where a=x;
52 delete from t1 where a<320;
53 set x=x+1;
54 end while;
55 end$$
56
57 ----call procedure----
58 call dml_operations_2();
59
60 UNLOCK TABLES;
61 SET sql_log_bin=0;
62 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*");
63 SET sql_log_bin=1;
64 # killing
65 # 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
66 # restarting
67 include/rpl_reconnect.inc
68 # check that there are 2 mebers in the group
69 include/rpl_gr_wait_for_number_of_members.inc
70 include/start_group_replication.inc
71 include/rpl_sync.inc
72 include/diff_tables.inc [server1:t1, server2:t1, server3:t1]
73 drop table t1;
74 drop procedure dml_operations;
75 drop procedure dml_operations_2;
76 include/group_replication_end.inc