Debian Codegraph @

mysql-test/suite/group_replication/r/gr_clone_integration_stop_joiner_during_clone.result

raw
1 include/group_replication.inc [rpl_server_count=3]
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. Install the clone plugin and start GR on server3
21 [connection server3]
22 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
23 include/start_group_replication.inc
24
25 #######################################################################
26 # 4. Restart server 2 with a monitoring process (mysqld_safe) if needed
27 # Setup the server so group replication starts on boot
28 [connection server2]
29 include/spawn_monitoring_process.inc
30 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
31
32 ############################################################
33 # 5. Start group replication on server 2
34 # Set a debug point so clone blocks
35 SET GLOBAL group_replication_clone_threshold= 1;
36 SET GLOBAL clone_autotune_concurrency = OFF;
37 SET GLOBAL clone_max_concurrency = 1;
38 SET @@GLOBAL.DEBUG='+d,gr_clone_wait';
39 START GROUP_REPLICATION;
40 SET DEBUG_SYNC = 'now WAIT_FOR gr_clone_paused';
41
42 ############################################################
43 # 6. Verify that the server state is RECOVERING during clone
44 include/gr_wait_for_member_state.inc
45
46 ############################################################
47 # 7. Stop group replication on server 2
48 # The clone process should have been killed
49 include/stop_group_replication.inc
50 include/assert.inc [Clone should have failed]
51 include/assert_grep.inc [Clone query was aborted]
52
53 ############################################################
54 # 8. Start GR again on server 2
55 # Clone should fix the server in proper way
56 SET DEBUG_SYNC = 'RESET';
57 SET @@GLOBAL.DEBUG = '-d,gr_clone_wait';
58 START GROUP_REPLICATION;
59 include/rpl_reconnect.inc
60 include/gr_wait_for_member_state.inc
61 include/assert.inc [Clone must be completed]
62 include/diff_tables.inc [server1:test.t1 ,server2:test.t1]
63
64 ############################################################
65 # 9. Cleanup
66 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;
67 RESET PERSIST IF EXISTS group_replication_group_name;
68 RESET PERSIST IF EXISTS group_replication_local_address;
69 RESET PERSIST IF EXISTS group_replication_group_seeds;
70 RESET PERSIST IF EXISTS group_replication_start_on_boot;
71 RESET PERSIST IF EXISTS group_replication_communication_stack;
72 DROP TABLE t1;
73 include/rpl_sync.inc
74 set session sql_log_bin=0;
75 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.");
76 call mtr.add_suppression("Internal query: CLONE INSTANCE FROM \'root\'@\'127.0.0.1\':[0-9]+ IDENTIFIED BY \'\\*\\*\\*\\*\\*\' REQUIRE NO SSL; result in error. Error number:*");
77 call mtr.add_suppression("There was an issue when cloning from another server: Error number: 1317 Error message: Query execution was interrupted");
78 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
79 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
80 set session sql_log_bin=1;
81 include/clean_monitoring_process.inc
82 include/group_replication_end.inc