Debian Codegraph @

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

raw
1 include/group_replication.inc [rpl_server_count=5]
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
7 ############################################################
8 # 1. Deploy a 2 members group A in single primary mode.
9 [connection server1]
10 include/start_and_bootstrap_group_replication.inc
11 [connection server2]
12 include/start_group_replication.inc
13
14 ############################################################
15 # 2. Deploy a 2 members group B in single primary mode.
16 [connection server3]
17 include/start_and_bootstrap_group_replication.inc
18 [connection server4]
19 include/start_group_replication.inc
20
21 ############################################################
22 # 3. Configure replica to manage the asynchronous connection
23 # to groups A and B.
24 [connection server5]
25 SELECT asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_A', '127.0.0.1', SERVER_MYPORT_1, '', 90, 70);;
26 asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_A', '127.0.0.1', SERVER_MYPORT_1, '', 90, 70)
27 The UDF asynchronous_connection_failover_add_managed() executed successfully.
28 SELECT asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_B', '127.0.0.1', SERVER_MYPORT_3, '', 85, 65);;
29 asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_B', '127.0.0.1', SERVER_MYPORT_3, '', 85, 65)
30 The UDF asynchronous_connection_failover_add_managed() executed successfully.
31 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server1']
32 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server3']
33 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover_managed for group A']
34 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover_managed for group B']
35
36 ############################################################
37 # 4. Create and start the managed channel.
38 [connection server5]
39 CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_USER='root', SOURCE_AUTO_POSITION=1, SOURCE_CONNECTION_AUTO_FAILOVER=1, SOURCE_PORT=SERVER_1_PORT, SOURCE_CONNECT_RETRY=1, SOURCE_RETRY_COUNT=1 FOR CHANNEL 'ch1';
40 Warnings:
41 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
42 Note 1760 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.
43 include/start_slave.inc [FOR CHANNEL 'ch1']
44 include/assert.inc [Verify channel ch1 IO_THREAD is ON and connected to server1]
45
46 ############################################################
47 # 5. Kill server2, group A will block due no majority.
48 [connection server2]
49 [connection server1]
50 include/gr_wait_for_member_state.inc
51
52 ############################################################
53 # 6. Since the group A has no majority, the replica will connect
54 # to server3 on group B.
55 [connection server5]
56 Wait until ch1 IO_THREAD is connected to server3
57 include/assert_grep.inc [The ER_RPL_ASYNC_CHANNEL_STOPPED_QUORUM_LOST error is logged]
58
59 ############################################################
60 # 7. Assert that group A information did not change, since it
61 # lost the majority.
62 [connection server5]
63 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server1']
64 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server2']
65
66 ############################################################
67 # 8. Clean up.
68 [connection server5]
69 include/stop_slave.inc [FOR CHANNEL 'ch1']
70 include/rpl_reset_slave.inc
71 SELECT asynchronous_connection_failover_delete_managed('ch1', 'GROUP_A');
72 asynchronous_connection_failover_delete_managed('ch1', 'GROUP_A')
73 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
74 include/assert.inc ['There are 0 rows in performance_schema.replication_asynchronous_connection_failover_managed for group A']
75 include/assert.inc ['There is 1 row in performance_schema.replication_asynchronous_connection_failover_managed for group B']
76 include/assert.inc ['There are 0 rows in performance_schema.replication_asynchronous_connection_failover for group A']
77 include/assert.inc ['There are 2 rows in performance_schema.replication_asynchronous_connection_failover for group B']
78 SELECT asynchronous_connection_failover_delete_managed('ch1', 'GROUP_B');
79 asynchronous_connection_failover_delete_managed('ch1', 'GROUP_B')
80 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
81 include/assert.inc ['There are no rows in performance_schema.replication_asynchronous_connection_failover']
82 include/assert.inc ['There are no rows in performance_schema.replication_asynchronous_connection_failover_managed']
83 SET SESSION sql_log_bin = 0;
84 call mtr.add_suppression("The source .* for channel 'ch1' has joined the group .*, and so added its entry into replication_asynchronous_connection_failover table.");
85 call mtr.add_suppression("The IO thread detected that the source .* does not belong to the group majority, thence the channel .* will try to connect to another source.");
86 call mtr.add_suppression("The Monitor IO thread detected that the source .* does not belong to the group majority, thence the channel .* will try to connect to another source.*");
87 call mtr.add_suppression("The Monitor IO thread failed to connect to the source .* for channel 'ch1', thence it will try to connect to another source.");
88 call mtr.add_suppression("The group .* for the channel .* has been removed, and so removed its entry from replication_asynchronous_connection_failover_managed and all the group members from replication_asynchronous_connection_failover table.");
89 call mtr.add_suppression("The group .* for the channel .* has been added, and so added its entry in replication_asynchronous_connection_failover_managed and source to replication_asynchronous_connection_failover table.");
90 SET SESSION sql_log_bin = 1;
91 [connection server1]
92 include/stop_group_replication.inc
93 SET SESSION sql_log_bin = 0;
94 call mtr.add_suppression("\\[GCS\\] Timeout while waiting for the group communication engine to exit!");
95 call mtr.add_suppression("\\[GCS\\] The member has failed to gracefully leave the group.");
96 SET SESSION sql_log_bin = 1;
97 [connection server2]
98 include/rpl_reconnect.inc
99 [connection server4]
100 include/stop_group_replication.inc
101 [connection server3]
102 include/stop_group_replication.inc
103 include/group_replication_end.inc