Debian Codegraph @

mysql-test/suite/group_replication/r/gr_recovery_double_view_update.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 # Start group replication on server 1
8 #
9 server1
10 include/start_and_bootstrap_group_replication.inc
11 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
12 #
13 # Set server 2 options to fail on recovery
14 #
15 server2
16 SET @debug_save_rec_int= @@GLOBAL.group_replication_recovery_reconnect_interval;
17 SET @debug_save_ret_count= @@GLOBAL.group_replication_recovery_retry_count;
18 CHANGE REPLICATION SOURCE TO SOURCE_PASSWORD='bad_password' FOR CHANNEL 'group_replication_recovery';
19 SET GLOBAL group_replication_recovery_reconnect_interval= 10 # seconds;
20 SET GLOBAL group_replication_recovery_retry_count= 2;
21 #
22 # Set server 2 making sure 2 views are received when recovery fails
23 #
24 set session sql_log_bin=0;
25 call mtr.add_suppression("There was an error when connecting to the donor*");
26 call mtr.add_suppression("For details please check performance_schema.replication_connection_status table and error log messages of Replica I/O for channel group_replication_recovery.");
27 call mtr.add_suppression("Maximum number of retries when*");
28 call mtr.add_suppression("Fatal error during the incremental recovery process of Group Replication.*");
29 call mtr.add_suppression("The member is leaving a group without being on one");
30 call mtr.add_suppression("Skipping leave operation: concurrent attempt to leave the group is on-going.");
31 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
32 call mtr.add_suppression("All donors left. Aborting group replication incremental recovery.*");
33 set session sql_log_bin=1;
34 SET @debug_save= @@GLOBAL.DEBUG;
35 SET @@GLOBAL.DEBUG='d,recovery_thread_wait_before_cleanup';
36 SET GLOBAL group_replication_group_name= "6749cab0-93ae-11e5-a837-0800200c9a66";
37 START GROUP_REPLICATION;
38 #
39 # Give time for server 2 to fail the connection once
40 # Stop recovery on the donor (server1)
41 #
42 server1
43 include/stop_group_replication.inc
44 #
45 # Watch server 2 enter an error state.
46 #
47 server2
48 SET DEBUG_SYNC= "now SIGNAL signal.recovery_end_end";
49 SET @@GLOBAL.DEBUG= @debug_save;
50 include/gr_wait_for_member_state.inc
51 #
52 # Check all is fine
53 #
54 server1
55 include/start_and_bootstrap_group_replication.inc
56 server2
57 include/stop_group_replication.inc
58 CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_PASSWORD='' FOR CHANNEL 'group_replication_recovery';
59 include/start_group_replication.inc
60 INSERT INTO t1 VALUES (1);
61 include/rpl_sync.inc
62 include/assert.inc [The table should contain 1 elements]
63 DROP TABLE t1;
64 #
65 # Cleanup
66 #
67 SET @@GLOBAL.group_replication_recovery_reconnect_interval= @debug_save_rec_int;
68 SET @@GLOBAL.group_replication_recovery_retry_count= @debug_save_ret_count;
69 include/group_replication_end.inc