Debian Codegraph @

mysql-test/suite/group_replication/r/gr_core_replication_commands.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 SET SESSION sql_log_bin= 0;
7 call mtr.add_suppression("'It is not possible to ensure the proper order when logging the view change log event.'");
8 SET SESSION sql_log_bin= 1;
9
10 [connection server1]
11 include/start_and_bootstrap_group_replication.inc
12
13 [connection server2]
14 include/start_group_replication.inc
15 SET SESSION sql_log_bin= 0;
16 call mtr.add_suppression("'It is not possible to ensure the proper order when logging the view change log event.'");
17 SET SESSION sql_log_bin= 1;
18 [connection server1]
19 CREATE TABLE test.t1 ( a int primary key);
20 include/rpl_sync.inc
21 SELECT WAIT_FOR_EXECUTED_GTID_SET('GROUP_REPLICATION_GROUP_NAME:1-103');
22 WAIT_FOR_EXECUTED_GTID_SET('GROUP_REPLICATION_GROUP_NAME:1-103')
23 0
24 SELECT WAIT_FOR_EXECUTED_GTID_SET('GROUP_REPLICATION_GROUP_NAME:1-120',5);
25 WAIT_FOR_EXECUTED_GTID_SET('GROUP_REPLICATION_GROUP_NAME:1-120',5)
26 1
27 include/rpl_sync.inc
28 [connection server1]
29 SET @@GLOBAL.DEBUG='+d,block_applier_updates';
30 [connection server2]
31 SET @@GLOBAL.DEBUG='+d,block_applier_updates';
32 [connection server3]
33 SET SESSION sql_log_bin= 0;
34 call mtr.add_suppression("Error while sending message in the group replication incremental recovery process");
35 SET SESSION sql_log_bin= 1;
36 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
37 START GROUP_REPLICATION;
38 include/gr_wait_for_member_state.inc
39 SELECT SOURCE_POS_WAIT('server-binary-log.000001',SAVED_POS, 0,'group_replication_recovery');
40 [connection server1]
41 SET DEBUG_SYNC = "now WAIT_FOR applier_read_blocked";
42 SET @@GLOBAL.DEBUG='-d,block_applier_updates';
43 SET DEBUG_SYNC = "now SIGNAL resume_applier_read";
44 [connection server2]
45 SET DEBUG_SYNC = "now WAIT_FOR applier_read_blocked";
46 SET @@GLOBAL.DEBUG='-d,block_applier_updates';
47 SET DEBUG_SYNC = "now SIGNAL resume_applier_read";
48 [connection server3]
49 include/stop_group_replication.inc
50 SELECT SOURCE_POS_WAIT('server-binary-log.000001',SAVED_POS, 0,'group_replication_recovery');
51 SOURCE_POS_WAIT('server-binary-log.000001',SAVED_POS, 0,'group_replication_recovery')
52 NULL
53 SELECT SOURCE_POS_WAIT('server-binary-log.000001',SAVED_POS, 2,'group_replication_applier');
54 SOURCE_POS_WAIT('server-binary-log.000001',SAVED_POS, 2,'group_replication_applier')
55 NULL
56
57 [connection server2]
58 CREATE TABLE test.t2 ( a int primary key);
59 include/rpl_sync.inc
60 include/rpl_sync.inc
61 [connection server1]
62 SET @@GLOBAL.DEBUG='+d,block_applier_updates';
63 [connection server2]
64 SET @@GLOBAL.DEBUG='+d,block_applier_updates';
65 [connection server3]
66 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
67 START GROUP_REPLICATION;
68 include/gr_wait_for_member_state.inc
69 SELECT WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS("GROUP_REPLICATION_GROUP_NAME:126", 20, "group_replication_recovery");
70 SELECT WAIT_FOR_EXECUTED_GTID_SET('GROUP_REPLICATION_GROUP_NAME:1-136',10);
71 SELECT WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS("GROUP_REPLICATION_GROUP_NAME:1-155", 0, "group_replication_recovery");
72 SELECT WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS("GROUP_REPLICATION_GROUP_NAME:1-155", 10, "group_replication_applier");
73 WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS("GROUP_REPLICATION_GROUP_NAME:1-155", 10, "group_replication_applier")
74 0
75 Warnings:
76 Warning 1287 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' is deprecated and will be removed in a future release. Please use WAIT_FOR_EXECUTED_GTID_SET instead
77 [connection server1]
78 SET DEBUG_SYNC = "now WAIT_FOR applier_read_blocked";
79 SET @@GLOBAL.DEBUG='-d,block_applier_updates';
80 SET DEBUG_SYNC = "now SIGNAL resume_applier_read";
81 [connection server2]
82 SET DEBUG_SYNC = "now WAIT_FOR applier_read_blocked";
83 SET @@GLOBAL.DEBUG='-d,block_applier_updates';
84 SET DEBUG_SYNC = "now SIGNAL resume_applier_read";
85 [connection server3]
86 include/assert.inc ['Checking the number of records in test.t1']
87 include/assert.inc ['Checking the number of records in test.t2']
88 [connection server2]
89 include/assert.inc ['Checking the number of records in test.t1']
90 include/assert.inc ['Checking the number of records in test.t2']
91 ## Cleanup ##
92 [connection server1]
93 SET DEBUG_SYNC= 'RESET';
94 [connection server2]
95 SET DEBUG_SYNC= 'RESET';
96 DROP TABLE test.t1;
97 DROP TABLE test.t2;
98 include/rpl_sync.inc
99 include/group_replication_end.inc