Debian Codegraph @

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

raw
1
2 ############################################################
3 # 1. Setup a new group with two members.
4 #
5 include/group_replication.inc
6 Warnings:
7 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
8 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.
9 [connection server1]
10 [connection server2]
11 SET SESSION sql_log_bin= 0;
12 call mtr.add_suppression("Failed to fetch transaction data containing required transaction info for applier");
13 call mtr.add_suppression("Fatal error during execution on the Applier process of Group Replication. The server will now leave the group.");
14 call mtr.add_suppression("Error at event handling! Got error: 1");
15 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
16 call mtr.add_suppression("Skipping leave operation: concurrent attempt to leave the group is on-going.");
17 SET SESSION sql_log_bin= 1;
18 include/start_and_bootstrap_group_replication.inc
19 ############################################################
20 # 2. Execute some transactions on member 1 that will be
21 # applied through member 2 Group Replication applier
22 # that is forced to fail.
23 #
24 [connection server1]
25 include/start_group_replication.inc
26
27 # On member 2 we force a pipeline error on applier
28 # handler.
29 [connection server2]
30 SET @debug_saved= @@GLOBAL.DEBUG;
31 SET @@GLOBAL.DEBUG= '+d,applier_handler_force_error_on_pipeline';
32 [connection server1]
33 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
34
35 # Wait until member 2 Group Replication applier errors out.
36 #
37 [connection server2]
38
39 # Reset debug flag.
40 #
41 include/stop_group_replication.inc
42 SET @@GLOBAL.DEBUG= @debug_saved;
43 include/start_group_replication.inc
44
45 ############################################################
46 # 3. Commit a transaction to validate that everything is OK
47 #
48 [connection server1]
49 INSERT INTO t1 VALUES (1);
50 include/rpl_sync.inc
51
52 ############################################################
53 # 4. Check that GTID_EXECUTED on server 1 contains all
54 # transactions.
55 # Also check that data is on tables.
56 [connection server1]
57 include/assert.inc [GTID_EXECUTED must contain all committed GTIDs]
58 include/assert.inc ['There is a value 1 in table t1']
59
60 ############################################################
61 # 5. Check that GTID_EXECUTED on server 2 contains all
62 # transactions.
63 # Also check that data is on tables.
64 [connection server2]
65 include/assert.inc [GTID_EXECUTED must contain all committed GTIDs]
66 include/assert.inc ['There is a value 1 in table t1']
67
68 ############################################################
69 # 6. Test cleanup.
70 #
71 DROP TABLE t1;
72 include/group_replication_end.inc