File: rpl_xa_prepare.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (59 lines) | stat: -rw-r--r-- 2,700 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
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.
[connection master]
CREATE TABLE t1 (c1 INT);
CREATE TABLE t2 (c1 INT);
include/sync_slave_sql_with_master.inc
FLUSH RELAY LOGS;
CALL mtr.add_suppression("@@SESSION.GTID_NEXT cannot be set to ANONYMOUS when @@GLOBAL.GTID_MODE = ON");
CALL mtr.add_suppression("When @@SESSION.GTID_NEXT is set to a GTID, you must explicitly set it to a different value after a COMMIT or ROLLBACK");
CALL mtr.add_suppression("Cannot execute the current event group");
CALL mtr.add_suppression("The replica coordinator and worker threads are stopped");
include/stop_slave.inc
[connection master]
XA START 'trx1';
INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1);
XA END 'trx1';
XA PREPARE 'trx1';
XA COMMIT 'trx1';
[connection slave]
include/rpl_receive_event_count.inc
include/show_relaylog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
slave-relay-bin.000005	#	XA_prepare	#	#	XA PREPARE X'74727831',X'',1
slave-relay-bin.000005	#	Query	#	#	XA COMMIT X'74727831',X'',1
[connection master]
include/sync_slave_io_with_master.inc
include/stop_slave_io.inc
CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE='slave-relay-bin.000005', RELAY_LOG_POS=4;
START REPLICA SQL_THREAD;
include/wait_for_slave_sql_error.inc [errno=1782, 1755]
ALTER TABLE t1 engine=MyISAM;
START REPLICA SQL_THREAD UNTIL SQL_AFTER_MTS_GAPS;
include/wait_for_slave_sql_to_stop.inc
CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE='slave-relay-bin.000004', RELAY_LOG_POS=4;
START REPLICA SQL_THREAD;
include/wait_for_slave_sql_error.inc [errno=1837]
ALTER TABLE t1 engine=Innodb;
DELETE FROM t1;
RESET MASTER;
CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE='slave-relay-bin.000004', RELAY_LOG_POS=4;
include/start_slave_sql.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/diff_tables.inc [master:t1, slave:t1]
include/diff_tables.inc [master:t2, slave:t2]
include/stop_slave_sql.inc
CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE='slave-relay-bin.000004', RELAY_LOG_POS=4;
include/start_slave_sql.inc
include/sync_slave_sql_with_io.inc
include/diff_tables.inc [master:t1, slave:t1]
include/diff_tables.inc [master:t2, slave:t2]
include/start_slave_io.inc
[connection master]
DROP TABLE t1, t2;
CALL mtr.add_suppression("Statement is unsafe because it is being used inside a XA transaction");
include/rpl_end.inc