Debian Codegraph @

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

raw
1 include/group_replication.inc
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. Start server 1 and bootstrap group
12 include/start_and_bootstrap_group_replication.inc
13
14 # 3. Create some transactions to send to joiner
15 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY , b INT);
16 INSERT INTO test.t1 (b) VALUES (1);
17 INSERT INTO test.t1 (b) VALUES (2);
18
19 # 4. Change settings on recovery to speed up failure
20 [connection server2]
21 include/spawn_monitoring_process.inc
22 SET GLOBAL group_replication_recovery_reconnect_interval= 1;
23 SET GLOBAL group_replication_recovery_retry_count= 1;
24
25 # 5. Setup the server so group replication starts on boot
26 # Install the Clone plugin
27 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
28
29 # 6. Ensure clone is used on recovery
30 SET GLOBAL group_replication_clone_threshold= 1;
31
32 # 7. Activate debug point that will simulate invalid recovery endpoints
33 # from donor
34 SET @debug_save= @@GLOBAL.DEBUG;
35 SET @@GLOBAL.DEBUG='+d,gr_recovery_endpoints_invalid_donor';
36
37 # 8. Recovery will fail and server state change to ERROR
38 include/start_group_replication.inc
39
40 # 9. Clone and incremental distributed recovery will fail connecting to donor
41 include/assert_grep.inc [recovery channel received an invalid recovery endpoints configuration from donor]
42
43 # 10. Disable debug point ans server will be able to join
44 SET @@GLOBAL.DEBUG= @debug_save;
45
46 # 11. Stop server 2 and start it again, the information received
47 # from donor will be valid
48 [connection server2]
49 include/stop_group_replication.inc
50
51 # 12. Clean debug point to allow to recovery be successful
52 START GROUP_REPLICATION;
53 include/rpl_reconnect.inc
54 include/gr_wait_for_member_state.inc
55
56 # 13. Cleanup
57 DROP TABLE test.t1;
58 include/rpl_sync.inc
59 set session sql_log_bin=0;
60 call mtr.add_suppression("Maximum number of retries when*");
61 call mtr.add_suppression("Fatal error during the incremental recovery process of Group Replication.*");
62 call mtr.add_suppression("Skipping leave operation: concurrent attempt to leave the group is on-going.");
63 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
64 call mtr.add_suppression("Due to the number of missing transactions being higher than the configured threshold of*");
65 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
66 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
67 call mtr.add_suppression("Due to some issue on the previous step distributed recovery is now executing: Incremental Recovery.");
68 call mtr.add_suppression("Failed to shutdown components infrastructure.");
69 call mtr.add_suppression("Received invalid recovery endpoints configuration from donor. This member is not a valid donor for recovery, so it will be skipped.");
70 set session sql_log_bin=1;
71 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
72 RESET PERSIST IF EXISTS group_replication_group_name;
73 RESET PERSIST IF EXISTS group_replication_local_address;
74 RESET PERSIST IF EXISTS group_replication_group_seeds;
75 RESET PERSIST IF EXISTS group_replication_start_on_boot;
76 RESET PERSIST IF EXISTS group_replication_communication_stack;
77 SET GLOBAL group_replication_start_on_boot= START_ON_BOOT_VALUE;
78 include/clean_monitoring_process.inc
79 UNINSTALL PLUGIN clone;
80 [connection server1]
81 UNINSTALL PLUGIN clone;
82 include/group_replication_end.inc