Debian Codegraph @

mysql-test/suite/group_replication/r/gr_recovery_endpoints_no_fallback.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. Configure a recovery endpoint with a port that do not have
12 # mysql server listening
13 SET @@GLOBAL.group_replication_advertise_recovery_endpoints = "127.0.0.1:SERVER1_ADMIN_PORT";
14
15 # 3. Start server 1 and bootstrap group
16 include/start_and_bootstrap_group_replication.inc
17
18 # 4. Create some transactions to send to joiner
19 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY , b INT);
20 INSERT INTO test.t1 (b) VALUES (1);
21 INSERT INTO test.t1 (b) VALUES (2);
22
23 # 5. Change settings on recovery to speed up failure
24 [connection server2]
25 include/spawn_monitoring_process.inc
26 SET GLOBAL group_replication_recovery_reconnect_interval= 1;
27 SET GLOBAL group_replication_recovery_retry_count= 2;
28
29 # 6. Setup the server so group replication starts on boot
30 # Install the Clone plugin
31 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
32
33 # 7. Ensure clone is used on recovery
34 SET GLOBAL group_replication_clone_threshold= 1;
35
36 # 8. Recovery will fail and server state change to ERROR
37 include/start_group_replication.inc
38
39 # 9. Clone will fail connecting to donor
40 include/assert_grep.inc [recovery channel used recovery endpoints configuration]
41
42 # 10. Distributed recovery will fail connecting to donor
43 include/assert_grep.inc [recovery channel used recovery endpoints configuration]
44
45 # 11. Set recovery endpoints to DEFAULT and server 2 will be able to join
46 [connection server1]
47 SET @@GLOBAL.group_replication_advertise_recovery_endpoints = "DEFAULT";
48
49 # 12. Stop server 2 and start it again, now it will receive donor default
50 # configuration for recovery
51 [connection server2]
52 include/stop_group_replication.inc
53 START GROUP_REPLICATION;
54 include/rpl_reconnect.inc
55 include/gr_wait_for_member_state.inc
56
57 # 13. Cleanup
58 DROP TABLE test.t1;
59 include/rpl_sync.inc
60 set session sql_log_bin=0;
61 call mtr.add_suppression("There was an error when connecting to the donor*");
62 call mtr.add_suppression("For details please check performance_schema.replication_connection_status table and error log messages of Replica I/O for channel group_replication_recovery.");
63 call mtr.add_suppression("Maximum number of retries when*");
64 call mtr.add_suppression("Fatal error during the incremental recovery process of Group Replication.*");
65 call mtr.add_suppression("Skipping leave operation: concurrent attempt to leave the group is on-going.");
66 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
67 call mtr.add_suppression("Due to the number of missing transactions being higher than the configured threshold of*");
68 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
69 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
70 call mtr.add_suppression("Internal query: CLONE INSTANCE FROM 'root'@'127.0.0.1':.*");
71 call mtr.add_suppression("There was an issue when cloning from another server: Error number: 3862*");
72 call mtr.add_suppression("Due to some issue on the previous step distributed recovery is now executing: Incremental Recovery.");
73 call mtr.add_suppression("Failed to shutdown components infrastructure.");
74 set session sql_log_bin=1;
75 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
76 RESET PERSIST IF EXISTS group_replication_group_name;
77 RESET PERSIST IF EXISTS group_replication_local_address;
78 RESET PERSIST IF EXISTS group_replication_group_seeds;
79 RESET PERSIST IF EXISTS group_replication_start_on_boot;
80 RESET PERSIST IF EXISTS group_replication_communication_stack;
81 SET GLOBAL group_replication_start_on_boot= START_ON_BOOT_VALUE;
82 include/clean_monitoring_process.inc
83 UNINSTALL PLUGIN clone;
84 [connection server1]
85 UNINSTALL PLUGIN clone;
86 include/group_replication_end.inc