Debian Codegraph @

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

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