Debian Codegraph @

mysql-test/suite/group_replication/r/gr_clone_with_consistency_after.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 ############################################################
8 # 1. Install clone plugin on server1.
9 [connection server1]
10 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
11
12 ############################################################
13 # 2. Bootstrap server1 and add some data
14 include/start_and_bootstrap_group_replication.inc
15 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
16 INSERT INTO t1 VALUES (1);
17 INSERT INTO t1 VALUES (2);
18
19 #######################################################################
20 # 3. Configure globally and persist group_replication_consistency globally to AFTER.
21 # Restart server 2 with a monitoring process (mysqld_safe) if needed
22 [connection server2]
23 SET PERSIST group_replication_consistency= AFTER;
24 include/spawn_monitoring_process.inc
25
26 ############################################################
27 # 4. Setup the server so group replication starts on boot
28 # Install the Clone plugin
29 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
30
31 ############################################################
32 # 5. On a empty server2 start group replication
33 # Wait for it to restart and come back
34 # Check clone was completed
35 SET GLOBAL group_replication_clone_threshold= 1;
36 include/assert.inc [group_replication_consistency is AFTER]
37 START GROUP_REPLICATION;
38 include/rpl_reconnect.inc
39 include/gr_wait_for_member_state.inc
40 include/assert.inc [group_replication_consistency is AFTER]
41 include/assert.inc [Clone must be completed]
42 include/diff_tables.inc [server1:test.t1 ,server2:test.t1]
43
44 ############################################################
45 # 6. Cleanup
46 [connection server1]
47 UNINSTALL PLUGIN clone;
48 DROP TABLE test.t1;
49 include/rpl_sync.inc
50 [connection server2]
51 UNINSTALL PLUGIN clone;
52 RESET PERSIST group_replication_group_name;
53 RESET PERSIST group_replication_local_address;
54 RESET PERSIST group_replication_group_seeds;
55 RESET PERSIST group_replication_start_on_boot;
56 RESET PERSIST group_replication_consistency;
57 RESET PERSIST group_replication_communication_stack;
58 SET GLOBAL group_replication_start_on_boot= START_ON_BOOT_VALUE;
59 SET GLOBAL group_replication_consistency = GROUP_REPLICATION_CONSISTENCY;
60 SET GLOBAL group_replication_clone_threshold= GROUP_REPLICATION_CLONE_THRESHOLD;
61 set session sql_log_bin=0;
62 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*");
63 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
64 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
65 set session sql_log_bin=1;
66 include/clean_monitoring_process.inc
67 include/group_replication_end.inc