~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Bug#11747416 : 32228  A disk full makes binary log corrupt.
 
3
#
 
4
 
5
# The test demonstrates reading from binlog error propagation to slave 
 
6
# and reporting there.
 
7
# Conditions for the bug include a crash at time of the last event to
 
8
# the binlog was written partly. With the fixes the event is not sent out 
 
9
# any longer, but rather the dump thread sends out a sound error message.
 
10
 
11
# Crash is not simulated. A binlog with partly written event in its end is installed
 
12
# and replication is started from it.
 
13
#
 
14
 
 
15
--source include/master-slave.inc
 
16
--source include/have_binlog_format_mixed.inc
 
17
#
 
18
# Bug#13050593 swallows `\' from  Last_IO_Error
 
19
# todo: uncomment the filter once the bug is fixed.
 
20
#
 
21
--source include/not_windows.inc
 
22
 
 
23
call mtr.add_suppression("Error in Log_event::read_log_event()");
 
24
 
 
25
--connection master
 
26
--let $datadir= `SELECT @@datadir`
 
27
 
 
28
--let $rpl_server_number= 1
 
29
--source include/rpl_stop_server.inc
 
30
 
 
31
--remove_file $datadir/master-bin.000001
 
32
--copy_file $MYSQL_TEST_DIR/std_data/bug11747416_32228_binlog.000001 $datadir/master-bin.000001
 
33
 
 
34
--let $rpl_server_number= 1
 
35
--source include/rpl_start_server.inc
 
36
 
 
37
--source include/wait_until_connected_again.inc
 
38
 
 
39
# evidence of the partial binlog
 
40
--error ER_ERROR_WHEN_EXECUTING_COMMAND
 
41
show binlog events;
 
42
 
 
43
--connection slave
 
44
call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log");
 
45
stop slave;
 
46
reset slave;
 
47
start slave;
 
48
 
 
49
# ER_MASTER_FATAL_ERROR_READING_BINLOG 1236
 
50
--let $slave_param=Last_IO_Errno
 
51
--let $slave_param_value=1236
 
52
--source include/wait_for_slave_param.inc
 
53
 
 
54
--let $status_items= Last_IO_Errno, Last_IO_Error
 
55
--source include/show_slave_status.inc
 
56
 
 
57
#
 
58
# Cleanup
 
59
#
 
60
 
 
61
--connection master
 
62
reset master;
 
63
 
 
64
--connection slave
 
65
stop slave;
 
66
reset slave;
 
67
drop table t; # table was created from binlog. it does not exist on master.
 
68
 
 
69
--echo End of the tests