Debian Codegraph @

mysql-test/suite/group_replication/r/gr_recovery_endpoints_ipv6_ipv4.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 recovery endpoints with two valid endpoints
12 SET @@GLOBAL.group_replication_advertise_recovery_endpoints = "[::1]:SERVER1_PORT,127.0.0.1:SERVER1_PORT";
13
14 # 3. Bootstrap server1 and add some data
15 include/start_and_bootstrap_group_replication.inc
16 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
17 INSERT INTO t1 VALUES (1);
18 INSERT INTO t1 VALUES (2);
19
20 # 4. Restart server2 with a monitoring process (mysqld_safe) if needed
21 [connection server2]
22 include/spawn_monitoring_process.inc
23
24 # 5. Setup the server so group replication starts on boot
25 # Install the Clone plugin
26 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
27
28 # 6. Ensure clone is used on recovery
29 SET GLOBAL group_replication_clone_threshold= 1;
30
31 # 7. On a empty server2 start group replication
32 [connection server2]
33 START GROUP_REPLICATION;
34 include/rpl_reconnect.inc
35 include/gr_wait_for_member_state.inc
36 # 8. Clone will fail connecting to first endpoint IPv6 and shall use IPv4
37 include/assert_grep.inc [clone fail setting IPv6 donor]
38
39 # 9. Distributed recovery shall use first endpoint IPv6
40 include/assert_grep.inc [recovery channel used recovery endpoints configuration]
41
42 # 10. Clone shall succeed and all data retrieved from server1
43 include/assert.inc [Clone must be completed]
44 include/diff_tables.inc [server1:test.t1 ,server2:test.t1]
45
46 # 11. Cleanup
47 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
48 RESET PERSIST IF EXISTS group_replication_group_name;
49 RESET PERSIST IF EXISTS group_replication_local_address;
50 RESET PERSIST IF EXISTS group_replication_group_seeds;
51 RESET PERSIST IF EXISTS group_replication_start_on_boot;
52 RESET PERSIST IF EXISTS group_replication_communication_stack;
53 SET GLOBAL group_replication_start_on_boot= START_ON_BOOT_VALUE;
54 DROP TABLE t1;
55 include/rpl_sync.inc
56 set session sql_log_bin=0;
57 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
58 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
59 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.");
60 call mtr.add_suppression(".*SET GLOBAL clone_valid_donor_list = '::1:.*' result in error.*");
61 call mtr.add_suppression("There was an issue when configuring the remote cloning process: Error while updating the clone donor list. Error number: 3869.*");
62 set session sql_log_bin=1;
63 include/clean_monitoring_process.inc
64 UNINSTALL PLUGIN clone;
65 [connection server1]
66 SET @@GLOBAL.group_replication_advertise_recovery_endpoints= "DEFAULT";
67 UNINSTALL PLUGIN clone;
68 include/group_replication_end.inc