Debian Codegraph @

mysql-test/suite/rpl/r/rpl_xa_survive_crash_debug.result

raw
1 include/master-slave.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 master]
6 [connection slave]
7 include/stop_slave.inc
8 [connection master]
9 call mtr.add_suppression("Found 1 prepared XA transactions");
10 CREATE TABLE t1 (a INT);
11 XA START 'xid_partly_rolled_back';
12 INSERT INTO t1 VALUES(1);
13 XA END 'xid_partly_rolled_back';
14 XA PREPARE 'xid_partly_rolled_back';
15 SET @@session.debug="+d,crash_after_xa_rollback";
16 XA ROLLBACK 'xid_partly_rolled_back';
17 ERROR HY000: Lost connection to MySQL server during query
18 include/rpl_start_server.inc [server_number=1]
19 [connection master]
20 include/assert.inc [Zero records in t1 is expected at master]
21 include/show_binlog_events.inc
22 Log_name Pos Event_type Server_id End_log_pos Info
23 master-bin.000001 # Query # # BEGIN
24 master-bin.000001 # Query # # use `mtr`; INSERT INTO test_suppressions (pattern) VALUES ( NAME_CONST('pattern',_utf8mb4'Found 1 prepared XA transactions' COLLATE 'utf8mb4_0900_ai_ci'))
25 master-bin.000001 # Xid # # COMMIT /* XID */
26 master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
27 master-bin.000001 # Query # # XA START X'7869645f706172746c795f726f6c6c65645f6261636b',X'',1
28 master-bin.000001 # Table_map # # table_id: # (test.t1)
29 master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
30 master-bin.000001 # Query # # XA END X'7869645f706172746c795f726f6c6c65645f6261636b',X'',1
31 master-bin.000001 # XA_prepare # # XA PREPARE X'7869645f706172746c795f726f6c6c65645f6261636b',X'',1
32 master-bin.000001 # Query # # XA ROLLBACK X'7869645f706172746c795f726f6c6c65645f6261636b',X'',1
33 SET @save.sql_log_bin = @@session.sql_log_bin;
34 SET @@session.sql_log_bin = 0;
35 XA ROLLBACK 'xid_partly_rolled_back';
36 SET @@session.sql_log_bin = @save.sql_log_bin;
37 [connection slave]
38 include/start_slave.inc
39 [connection master]
40 include/sync_slave_sql_with_master.inc
41 include/assert.inc [Zero records in t1 is expected at slave]
42 [connection master]
43 DROP TABLE t1;
44 include/sync_slave_sql_with_master.inc
45 include/rpl_end.inc