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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
# slave is going to stop because of emulated failures
54
54
# but there won't be any crashes nor asserts hit.
55
55
#
56
 
source include/wait_for_slave_to_stop.inc;
 
56
# 1593 = ER_SLAVE_FATAL_ERROR
 
57
--let $slave_sql_errno= 1593
 
58
--let $show_slave_sql_error= 1
 
59
--source include/wait_for_slave_sql_error.inc
57
60
 
58
 
let $error= query_get_value(SHOW SLAVE STATUS, Last_Error, 1);
59
 
echo Reporting the following error: $error;
60
 
call mtr.add_suppression("Failed during slave I/O thread initialization");
 
61
call mtr.add_suppression("Failed during slave.* thread initialization");
61
62
 
62
63
SET GLOBAL debug= "";
63
64
 
66
67
######################################################################
67
68
connection slave;
68
69
 
69
 
--disable_warnings
70
 
stop slave;
71
 
--enable_warnings
72
 
source include/wait_for_slave_to_stop.inc;
73
 
 
74
70
reset slave;
75
71
 
76
72
SET GLOBAL init_slave= "garbage";
77
73
 
78
74
start slave;
79
 
source include/wait_for_slave_sql_to_stop.inc;
80
 
 
81
 
let $error= query_get_value(SHOW SLAVE STATUS, Last_Error, 1);
82
 
echo Reporting the following error: $error;
 
75
# 1064 = ER_PARSE_ERROR
 
76
--let $slave_sql_errno= 1064
 
77
--let $show_slave_sql_error= 1
 
78
--source include/wait_for_slave_sql_error.inc
83
79
 
84
80
######################################################################
85
81
#                             Clean up
86
82
######################################################################
87
83
SET GLOBAL init_slave= "";
 
84
 
 
85
# Clean up Last_SQL_Error
 
86
--source include/stop_slave_io.inc
 
87
RESET SLAVE;
 
88
--let $rpl_only_running_threads= 1
 
89
--source include/rpl_end.inc