Debian Codegraph @

mysql-test/suite/rpl_nogtid/r/rpl_stm_start_stop_slave.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 SET @old_innodb_flush_log_at_trx_commit= @@global.innodb_flush_log_at_trx_commit;
7 SET @@global.innodb_flush_log_at_trx_commit= 0;
8 SET @old_innodb_flush_log_at_trx_commit= @@global.innodb_flush_log_at_trx_commit;
9 SET @@global.innodb_flush_log_at_trx_commit= 0;
10 SET @@session.binlog_direct_non_transactional_updates= FALSE;
11 call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
12 create table t1i(n int primary key) engine=innodb;
13 create table t2m(n int primary key) engine=myisam;
14 begin;
15 insert into t1i values (1);
16 insert into t1i values (2);
17 insert into t1i values (3);
18 commit;
19 begin;
20 insert into t1i values (5);
21 begin;
22 insert into t1i values (4);
23 insert into t2m values (1);
24 Warnings:
25 Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
26 insert into t1i values (5);
27 commit;
28 zero
29 0
30 stop slave;
31 rollback;
32 Warnings:
33 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
34 include/wait_for_slave_to_stop.inc
35 *** sql thread is *not* running: No ***
36 *** the prove: the stopped slave has finished the current transaction ***
37 five
38 5
39 zero
40 0
41 one
42 1
43 include/start_slave.inc
44 drop table t1i, t2m;
45 #
46 # Bug#56096 STOP SLAVE hangs if executed in parallel with user sleep
47 #
48 DROP TABLE IF EXISTS t1;
49 CREATE TABLE t1 (a INT );
50 # Slave1: lock table for synchronization
51 LOCK TABLES t1 WRITE;
52 # Master: insert into the table
53 INSERT INTO t1 SELECT SLEEP(4);
54 Warnings:
55 Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the replica.
56 # Slave: wait for the insert
57 # Slave: send slave stop
58 STOP SLAVE;
59 # Slave1: wait for stop slave
60 # Slave1: unlock the table
61 UNLOCK TABLES;
62 # Slave: wait for the slave to stop
63 Warnings:
64 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
65 include/wait_for_slave_to_stop.inc
66 # Start slave again
67 include/start_slave.inc
68 # Clean up
69 DROP TABLE t1;
70 RESET MASTER;
71 include/stop_slave.inc
72 CHANGE REPLICATION SOURCE TO SOURCE_LOG_POS=MASTER_POS;
73 START SLAVE;
74 Warnings:
75 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
76 include/wait_for_slave_param.inc [Last_IO_Errno]
77 Last_IO_Errno = '13114'
78 Last_IO_Error = 'Got fatal error 1236 from source when reading data from binary log: 'Client requested source to start replication from position > file size''
79 include/stop_slave.inc
80 RESET SLAVE;
81 Warnings:
82 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
83 RESET MASTER;
84 SET @@global.innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
85 call mtr.add_suppression("Replica SQL.*Request to stop replica SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group");
86 call mtr.add_suppression("Unsafe statement.*. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.*");
87 call mtr.add_suppression("Unsafe statement.*. Statement is unsafe because it uses a system function that may return a different value on the replica.*");
88 SET @@global.innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
89 include/rpl_end.inc