Debian Codegraph @

mysql-test/suite/group_replication/r/gr_clone_integration_stop_primary_member.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
7 ############################################################
8 # 1. Install clone plugin on server1.
9 [connection server1]
10 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
11
12 ############################################################
13 # 2. Bootstrap server1 and add some data
14 include/start_and_bootstrap_group_replication.inc
15 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
16 INSERT INTO t1 VALUES (1);
17 INSERT INTO t1 VALUES (2);
18
19 #################################################################
20 # 3. Install the clone plugin and start GR on server3
21 [connection server3]
22 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
23 include/start_group_replication.inc
24
25 #######################################################################
26 # 4. Restart server 2 with a monitoring process (mysqld_safe) if needed
27 [connection server2]
28 SET PERSIST group_replication_enforce_update_everywhere_checks= OFF;
29 SET PERSIST group_replication_single_primary_mode= ON;
30 include/spawn_monitoring_process.inc
31 ############################################################
32 # 5. Install the clone plugin on server 2
33 # Setup the server so group replication starts on boot
34 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
35
36 ############################################################
37 # 6. Start group replication on server 2
38 # Set a debug point so it blocks before clone.
39 SET GLOBAL group_replication_clone_threshold= 1;
40 SET @@GLOBAL.DEBUG='+d,gr_clone_process_before_execution';
41 START GROUP_REPLICATION;
42 SET DEBUG_SYNC = 'now WAIT_FOR signal.gr_clone_thd_paused';
43
44 ############################################################
45 # 7. Stop the current primary member forcing an election
46 # Check all states are correct
47 [connection server1]
48 include/stop_group_replication.inc
49 [connection server2]
50 include/rpl_gr_wait_for_number_of_members.inc
51 [connection server3]
52 include/rpl_gr_wait_for_number_of_members.inc
53 include/gr_assert_primary_member.inc
54
55 ############################################################
56 # 8. Unblock clone.
57 # Check everything is fine after restart
58 [connection server2]
59 SET DEBUG_SYNC = 'now SIGNAL signal.gr_clone_thd_continue';
60 SET @@GLOBAL.DEBUG = '-d,gr_clone_process_before_execution';
61 include/rpl_reconnect.inc
62 include/gr_wait_for_member_state.inc
63 include/assert.inc [Clone must be completed]
64
65 ############################################################
66 # 9. Start the stopped server
67 # Check data consistency
68 [connection server1]
69 include/start_group_replication.inc
70 include/diff_tables.inc [server1:test.t1, server2:test.t1, server3:test.t1]
71
72 ############################################################
73 # 10. Cleanup
74 [connection server2]
75 SET DEBUG_SYNC = 'RESET';
76 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
77 RESET PERSIST IF EXISTS group_replication_enforce_update_everywhere_checks;
78 RESET PERSIST IF EXISTS group_replication_single_primary_mode;
79 RESET PERSIST IF EXISTS group_replication_group_name;
80 RESET PERSIST IF EXISTS group_replication_local_address;
81 RESET PERSIST IF EXISTS group_replication_group_seeds;
82 RESET PERSIST IF EXISTS group_replication_start_on_boot;
83 RESET PERSIST IF EXISTS group_replication_communication_stack;
84 SET GLOBAL read_only= FALSE;
85 set session sql_log_bin=0;
86 call mtr.add_suppression("This member will start distributed recovery using clone. It is due to the number of missing transactions being higher than the configured threshold of 1.");
87 call mtr.add_suppression("Plugin group_replication reported: 'Internal query: CLONE INSTANCE FROM \"root\"@127.0.0.1:[0-9]+ IDENTIFIED BY \"\\*\\*\\*\\*\\*\" REQUIRE NO SSL; result in error. Error number: 1317'");
88 call mtr.add_suppression("There was an issue when cloning from another server: Error number: 1317 Error message: Query execution was interrupted'");
89 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
90 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
91 set session sql_log_bin=1;
92 include/clean_monitoring_process.inc
93 include/group_replication_end.inc