~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Bug #33932    assertion at handle_slave_sql if init_slave_thread() fails
4
4
 
5
5
source include/have_debug.inc;
6
 
source include/have_log_bin.inc;
7
 
 
8
 
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
9
 
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);
10
 
 
11
 
 
12
 
connection master;
13
 
reset master;
 
6
source include/master-slave.inc;
14
7
 
15
8
connection slave;
16
9
 
17
10
# Add suppression for expected warnings in slaves error log
18
11
call mtr.add_suppression("Failed during slave I/O thread initialization");
 
12
call mtr.add_suppression("Slave SQL.*Failed during slave thread initialization.* 1593");
19
13
 
20
 
--disable_warnings
21
 
stop slave;
22
 
--enable_warnings
 
14
--source include/stop_slave.inc
23
15
reset slave;
24
16
 
25
17
# Set debug flags on slave to force errors to occur
27
19
 
28
20
start slave;
29
21
 
30
 
connection master;
31
 
save_master_pos;
32
 
connection slave;
33
 
 
34
22
#
35
23
# slave is going to stop because of emulated failures
36
24
# but there won't be any crashes nor asserts hit.
37
25
#
38
 
source include/wait_for_slave_to_stop.inc;
39
26
 
40
27
# 1593 = ER_SLAVE_FATAL_ERROR 
41
 
--let $slave_sql_errno= 1593 
 
28
--let $slave_sql_errno= 1593
42
29
--let $show_slave_sql_error= 1
43
30
--source include/wait_for_slave_sql_error.inc
44
31
 
47
34
#
48
35
SET GLOBAL debug="";
49
36
 
 
37
# Clear Last_SQL_Error
 
38
RESET SLAVE;
 
39
 
 
40
--let $rpl_only_running_threads= 1
 
41
--source include/rpl_end.inc