Debian Codegraph @

mysql-test/suite/group_replication/r/gr_crash_recovery_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(IN p INT,IN q INT)
18 BEGIN
19 declare x INT;
20 set x=p;
21 while x<q do
22 insert into t1 values (x);
23 update t1 set a=x+400 where a=x;
24 delete from t1 where a<420;
25 set x=x+1;
26 end while;
27 end$$
28
29 ----call procedure----
30 call dml_operations(1,100);
31
32 [connection server3]
33 set sql_log_bin=0;
34 CREATE TABLE t1(a int primary key);
35 SET sql_log_bin=1;
36 LOCK TABLES t1 READ;
37 [connection server_3]
38 include/start_group_replication.inc
39 [connection server1]
40 ----call procedure----
41 call dml_operations(100,200);
42
43 [connection server_1]
44 [connection server3]
45 UNLOCK TABLES;
46 # killing
47 # 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 --group_replication_communication_stack=GROUP_REPLICATION_COMMUNICATION_STACK
48 # restarting
49 include/rpl_reconnect.inc
50 [connection server2]
51 # check that there are 2 mebers in the group
52 include/rpl_gr_wait_for_number_of_members.inc
53 [connection server1]
54 ----call procedure----
55 call dml_operations(200,300);
56
57 [connection server3]
58 LOCK TABLES t1 READ;
59 [connection server_3]
60 start group_replication;
61 include/gr_wait_for_member_state.inc
62 [connection server1]
63 ----call procedure----
64 call dml_operations(300,400);
65
66 [connection server3]
67 UNLOCK TABLES;
68 [connection server3]
69 # killing
70 # 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 --group_replication_communication_stack=GROUP_REPLICATION_COMMUNICATION_STACK
71 # restarting
72 include/rpl_reconnect.inc
73 [connection server2]
74 # check that there are 2 mebers in a group
75 include/rpl_gr_wait_for_number_of_members.inc
76 [connection server1]
77 [connection server3]
78 RESET SLAVE FOR CHANNEL 'group_replication_recovery';
79 CHANGE REPLICATION SOURCE TO SOURCE_USER= 'root' FOR CHANNEL 'group_replication_recovery';
80 include/start_group_replication.inc
81 include/rpl_sync.inc
82 include/diff_tables.inc [server1:t1, server2:t1, server3:t1]
83 drop table t1;
84 drop procedure dml_operations;
85 include/group_replication_end.inc