Debian Codegraph @

mysql-test/suite/group_replication/r/gr_local_applier_error.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 # 2 member group
8 # Force a pipeline error on certification handler.
9 #
10 [connection server1]
11 SET SESSION sql_log_bin= 0;
12 call mtr.add_suppression("Failed to fetch Transaction_context_log_event containing required transaction info for certification");
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 member is leaving a group without being on one");
16 call mtr.add_suppression("Due to a plugin error, some transactions were unable to be certified and will now rollback.");
17 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
18 call mtr.add_suppression("Error while waiting for conflict detection procedure to finish on session .*");
19 call mtr.add_suppression("Run function 'before_commit' in plugin 'group_replication' failed");
20 call mtr.add_suppression("Skipping leave operation: concurrent attempt to leave the group is on-going.");
21 SET SESSION sql_log_bin= 1;
22 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
23 SET @@GLOBAL.DEBUG= '+d,certification_handler_force_error_on_pipeline';
24 #
25 # Execute a transaction on member 1 causing the applier to error out
26 # The member should leave the group
27 #
28 INSERT INTO t1 VALUES (1);
29 Got one of the listed errors
30 #
31 # Wait until member 1 Group Replication applier errors out.
32 #
33 include/gr_wait_for_member_state.inc
34 #
35 # Assert that the transaction was roll backed locally
36 #
37 include/assert.inc ['There is no value 1 in table t1']
38 #
39 # Assert that the read mode is active
40 #
41 include/assert.inc [The super_read_only mode should be active.]
42 #
43 # Stop the member and join it again.
44 #
45 SET @@GLOBAL.DEBUG= '-d,certification_handler_force_error_on_pipeline';
46 include/stop_group_replication.inc
47 include/start_group_replication.inc
48 #
49 # Check that table 1 now has a value
50 #
51 include/assert.inc ['There is now a value 1 in table t1']
52 #
53 # Check that GTID_EXECUTED on server 1 contains all transactions.
54 #
55 include/assert.inc [GTID_EXECUTED must contain all committed GTIDs]
56 #
57 # Check that GTID_EXECUTED on server 2 contains all transactions.
58 #
59 [connection server2]
60 include/assert.inc [GTID_EXECUTED must contain all committed GTIDs]
61 #
62 # Test cleanup.
63 #
64 DROP TABLE t1;
65 include/group_replication_end.inc