| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection server_2; |
| 4 |
include/stop_slave.inc |
| 5 |
SET @old_parallel_threads=@@GLOBAL.slave_parallel_threads; |
| 6 |
SET @old_parallel_mode=@@GLOBAL.slave_parallel_mode; |
| 7 |
SET @old_debug= @@GLOBAL.debug_dbug; |
| 8 |
SET GLOBAL slave_parallel_mode='optimistic'; |
| 9 |
SET GLOBAL slave_parallel_threads= 3; |
| 10 |
CHANGE MASTER TO master_use_gtid=slave_pos; |
| 11 |
CALL mtr.add_suppression("Commit failed due to failure of an earlier commit on which this one depends"); |
| 12 |
include/start_slave.inc |
| 13 |
connection server_1; |
| 14 |
ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB; |
| 15 |
CREATE TABLE t1 (a int PRIMARY KEY) ENGINE=InnoDB; |
| 16 |
INSERT INTO t1 VALUES(1); |
| 17 |
include/save_master_gtid.inc |
| 18 |
connection server_2; |
| 19 |
include/sync_with_master_gtid.inc |
| 20 |
connect con_temp2,127.0.0.1,root,,test,$SERVER_MYPORT_2,; |
| 21 |
BEGIN; |
| 22 |
INSERT INTO t1 VALUES (32); |
| 23 |
connection server_1; |
| 24 |
INSERT INTO t1 VALUES (32); |
| 25 |
connection server_2; |
| 26 |
SET GLOBAL debug_dbug="+d,hold_worker_on_schedule"; |
| 27 |
SET debug_sync="debug_sync_action SIGNAL reached_pause WAIT_FOR continue_worker"; |
| 28 |
connection server_1; |
| 29 |
SET gtid_seq_no=100; |
| 30 |
INSERT INTO t1 VALUES (33); |
| 31 |
connection server_2; |
| 32 |
SET debug_sync='now WAIT_FOR reached_pause'; |
| 33 |
connection server_1; |
| 34 |
INSERT INTO t1 VALUES (34); |
| 35 |
connection server_2; |
| 36 |
connection con_temp2; |
| 37 |
COMMIT; |
| 38 |
connection server_2; |
| 39 |
include/wait_for_slave_sql_error.inc [errno=1062] |
| 40 |
include/stop_slave_io.inc |
| 41 |
include/assert.inc [table t1 should have zero rows where a>32] |
| 42 |
SELECT * FROM t1 WHERE a>32; |
| 43 |
a |
| 44 |
DELETE FROM t1 WHERE a=32; |
| 45 |
SET GLOBAL slave_parallel_threads=@old_parallel_threads; |
| 46 |
SET GLOBAL slave_parallel_mode=@old_parallel_mode; |
| 47 |
SET GLOBAL debug_dbug=@old_debug; |
| 48 |
SET DEBUG_SYNC= 'RESET'; |
| 49 |
include/start_slave.inc |
| 50 |
connection server_1; |
| 51 |
DROP TABLE t1; |
| 52 |
include/rpl_end.inc |