Debian Codegraph @

mysql-test/suite/group_replication/r/gr_recovery_endpoints_multiple_valid.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 set session sql_log_bin=0;
7 call mtr.add_suppression("Failed to initialize TLS for channel: mysql_admin");
8 call mtr.add_suppression("Failed to set up SSL because of the following SSL library error");
9 set session sql_log_bin=1;
10
11 # 1. Install clone plugin on server1.
12 [connection server1]
13 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
14
15 # 2. Configure recovery endpoints with two valid endpoints
16 SET @@GLOBAL.group_replication_advertise_recovery_endpoints = "127.0.0.1:SERVER1_ADMIN_PORT,127.0.0.1:SERVER1_PORT";
17
18 # 3. Bootstrap server1 and add some data
19 include/start_and_bootstrap_group_replication.inc
20 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
21 INSERT INTO t1 VALUES (1);
22 INSERT INTO t1 VALUES (2);
23
24 # 4. Restart server 2 with a monitoring process (mysqld_safe) if needed
25 [connection server2]
26 include/spawn_monitoring_process.inc
27
28 # 5. Setup the server so group replication starts on boot
29 # Install the Clone plugin
30 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
31
32 # 6. Ensure clone is used on recovery
33 SET GLOBAL group_replication_clone_threshold= 1;
34
35 # 7. On a empty server2 start group replication
36 # Wait for it to restart and come back
37 START GROUP_REPLICATION;
38 include/rpl_reconnect.inc
39 include/gr_wait_for_member_state.inc
40 include/diff_tables.inc [server1:test.t1 ,server2:test.t1]
41
42 # 8. Cleanup
43 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
44 RESET PERSIST IF EXISTS group_replication_group_name;
45 RESET PERSIST IF EXISTS group_replication_local_address;
46 RESET PERSIST IF EXISTS group_replication_group_seeds;
47 RESET PERSIST IF EXISTS group_replication_start_on_boot;
48 RESET PERSIST IF EXISTS group_replication_communication_stack;
49 SET GLOBAL group_replication_start_on_boot= START_ON_BOOT_VALUE;
50 DROP TABLE t1;
51 include/rpl_sync.inc
52 set session sql_log_bin=0;
53 call mtr.add_suppression("Due to the number of missing transactions being higher than the configured threshold of*");
54 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
55 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
56 set session sql_log_bin=1;
57 include/clean_monitoring_process.inc
58 UNINSTALL PLUGIN clone;
59 [connection server1]
60 SET @@GLOBAL.group_replication_advertise_recovery_endpoints= "DEFAULT";
61 UNINSTALL PLUGIN clone;
62 include/group_replication_end.inc