~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_gtid_mode_on_new_master.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-21 07:09:29 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20150721070929-mg4dpqkgg3it1ajf
Tags: upstream-5.6.25
ImportĀ upstreamĀ versionĀ 5.6.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# See rpl_gtid_mode_off_new_master.test.
 
2
 
 
3
--source include/have_debug.inc
 
4
--source include/have_gtid.inc
 
5
--source include/have_binlog_format_row.inc
 
6
 
 
7
--source include/master-slave.inc
 
8
 
 
9
--connection slave
 
10
CALL mtr.add_suppression('Slave I/O: The master uses an unknown GTID_MODE');
 
11
CALL mtr.add_suppression('The slave IO thread stops because the master has an unknown');
 
12
 
 
13
SET @save_debug= @@GLOBAL.DEBUG;
 
14
 
 
15
--source include/stop_slave.inc
 
16
SET @@GLOBAL.DEBUG = 'd,simulate_master_has_gtid_mode_on_permissive';
 
17
--source include/start_slave.inc
 
18
--let $assert_text= Receiver thread should report that on_permissive is unknown
 
19
--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.2.err
 
20
--let $assert_only_after= Slave I/O thread: connected to master
 
21
--let $assert_select= Slave I/O: The master uses an unknown GTID_MODE 'on_permissive'. Treating it as 'ON'.
 
22
--let $assert_count= 1
 
23
--source include/assert_grep.inc
 
24
 
 
25
--source include/stop_slave.inc
 
26
SET @@GLOBAL.DEBUG = 'd,simulate_master_has_gtid_mode_on_something';
 
27
--source include/start_slave.inc
 
28
--let $assert_text= Receiver thread should report that on_something is unknown
 
29
--let $assert_select= Slave I/O: The master uses an unknown GTID_MODE 'on_something'. Treating it as 'ON'.
 
30
--source include/assert_grep.inc
 
31
 
 
32
--source include/stop_slave.inc
 
33
SET @@GLOBAL.DEBUG = 'd,simulate_master_has_unknown_gtid_mode';
 
34
START SLAVE;
 
35
--let $slave_io_errno= convert_error(ER_SLAVE_FATAL_ERROR)
 
36
--source include/wait_for_slave_io_error.inc
 
37
 
 
38
SET @@GLOBAL.DEBUG= @save_debug;
 
39
--source include/stop_slave_sql.inc
 
40
RESET SLAVE;
 
41
--source include/start_slave.inc
 
42
 
 
43
--source include/rpl_end.inc