Debian Codegraph @

mysql-test/suite/group_replication/r/gr_clone_integration_basics.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. Restart server 2 with a monitoring process (mysqld_safe) if needed
21 [connection server2]
22 include/spawn_monitoring_process.inc
23
24 ############################################################
25 # 4. Setup the server so group replication starts on boot
26 # Install the Clone plugin
27 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
28
29 ############################################################
30 # 5. Verify clone must not override joiner data.
31 # Joiner must fail to join the group.
32 SET GLOBAL group_replication_clone_threshold= 1;
33 SET GTID_NEXT= "aaabaaab-bbbb-aaaa-bbbb-aaabaaabaaab:1";
34 CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
35 SET GTID_NEXT= "AUTOMATIC";
36 include/assert.inc [The member shall contain a local transaction]
37 START GROUP_REPLICATION;
38 ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
39 [connection server1]
40 include/rpl_gr_wait_for_number_of_members.inc
41 [connection server2]
42 DROP TABLE t2;
43 RESET MASTER;
44
45 ############################################################
46 # 6. On a empty server2 start group replication
47 # Wait for it to restart and come back
48 # Check clone was completed
49 SET GLOBAL group_replication_clone_threshold= 1;
50 START GROUP_REPLICATION;
51 include/rpl_reconnect.inc
52 include/gr_wait_for_member_state.inc
53 include/assert.inc [Clone must be completed]
54 include/diff_tables.inc [server1:test.t1 ,server2:test.t1]
55
56 ############################################################
57 # 7. Cleanup
58 [connection server1]
59 UNINSTALL PLUGIN clone;
60 DROP TABLE test.t1;
61 include/rpl_sync.inc
62 [connection server2]
63 UNINSTALL PLUGIN clone;
64 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
65 RESET PERSIST IF EXISTS group_replication_group_name;
66 RESET PERSIST IF EXISTS group_replication_local_address;
67 RESET PERSIST IF EXISTS group_replication_group_seeds;
68 RESET PERSIST IF EXISTS group_replication_start_on_boot;
69 RESET PERSIST IF EXISTS group_replication_communication_stack;
70 SET GLOBAL group_replication_start_on_boot= START_ON_BOOT_VALUE;
71 set session sql_log_bin=0;
72 call mtr.add_suppression(".*This member has more executed transactions *.*");
73 call mtr.add_suppression(".*The member contains transactions not present *.*");
74 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*");
75 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
76 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
77 set session sql_log_bin=1;
78 include/clean_monitoring_process.inc
79 include/group_replication_end.inc