Debian Codegraph @

mysql-test/suite/group_replication/r/gr_recovery_endpoints_retry_clone.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 # 1. Install clone plugin on server1.
8 [connection server1]
9 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
10
11 # 2. Bootstrap server1 and add some data
12 include/start_and_bootstrap_group_replication.inc
13 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
14 INSERT INTO t1 VALUES (1);
15 INSERT INTO t1 VALUES (2);
16 [connection server2]
17 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
18 include/start_group_replication.inc
19
20 # 3. Restart server3 with a monitoring process (mysqld_safe) if needed
21 [connection server3]
22 include/spawn_monitoring_process.inc
23
24 # 4. Setup the server so group replication starts on boot
25 # Install the Clone plugin
26 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
27
28 # 5. Ensure clone is used on recovery
29 SET GLOBAL group_replication_clone_threshold= 1;
30
31 # 6. Activate debug point that will simulate failure on first clone
32 # donor
33 [connection server3]
34 SET @debug_save= @@GLOBAL.DEBUG;
35 SET @@GLOBAL.DEBUG='+d,gr_run_clone_query_fail_once';
36
37 # 7. On a empty server3 start group replication
38 [connection server3]
39 START GROUP_REPLICATION;
40 [connection server_3]
41
42 # 8. Clone donor will fail due to debug point and succeed on second
43 # endpoint
44 SET DEBUG_SYNC = "now WAIT_FOR signal.run_clone_query_waiting";
45 SET DEBUG_SYNC = "now SIGNAL signal.run_clone_query_continue";
46 # 9. Wait for server to restart and come back
47 [connection server3]
48 include/rpl_reconnect.inc
49 include/gr_wait_for_member_state.inc
50
51 # 10. Clone will continue iteration on recovery endpoints
52 # and will do recovery from second endpoint
53 include/assert.inc [Clone must be completed]
54 include/diff_tables.inc [server1:test.t1 ,server3:test.t1]
55
56 # 11. Cleanup
57 SET @@GLOBAL.DEBUG= @debug_save;
58 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
59 RESET PERSIST IF EXISTS group_replication_group_name;
60 RESET PERSIST IF EXISTS group_replication_local_address;
61 RESET PERSIST IF EXISTS group_replication_group_seeds;
62 RESET PERSIST IF EXISTS group_replication_start_on_boot;
63 RESET PERSIST group_replication_communication_stack;
64 SET GLOBAL group_replication_start_on_boot= START_ON_BOOT_VALUE;
65 DROP TABLE t1;
66 include/rpl_sync.inc
67 set session sql_log_bin=0;
68 call mtr.add_suppression("Due to the number of missing transactions being higher than the configured threshold of*");
69 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
70 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
71 call mtr.add_suppression("Server was not able to find a rotate event from source server to initialize relay log recovery for channel ''. Skipping relay log recovery for the channel.");
72 call mtr.add_suppression("Error during --relay-log-recovery: Could not locate rotate event from the source.");
73 call mtr.add_suppression("Applier metadata information for channel '' was found after a clone operation. Relay log recovery");
74 set session sql_log_bin=1;
75 include/clean_monitoring_process.inc
76 UNINSTALL PLUGIN clone;
77 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0 FOR CHANNEL '';
78 [connection server2]
79 UNINSTALL PLUGIN clone;
80 [connection server1]
81 UNINSTALL PLUGIN clone;
82 include/group_replication_end.inc