~vadim-tk/percona-server/percona-galera-5.1.57

« back to all changes in this revision

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

  • Committer: root
  • Date: 2011-07-10 16:09:24 UTC
  • Revision ID: root@r815.office.percona.com-20110710160924-fyffqsbaclgu6vui
Initial port

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
source include/have_binlog_format_statement.inc;
 
2
source include/have_debug.inc;
 
3
source include/master-slave.inc;
 
4
 
 
5
# We do this little stunt to make sure that the slave has started
 
6
# before we stop it again.
 
7
connection master;
 
8
CREATE TABLE t1 (a INT, b INT);
 
9
INSERT INTO t1 VALUES (1,10);
 
10
sync_slave_with_master;
 
11
 
 
12
# Now we feed it a load data infile, which should make it stop with a
 
13
# fatal error.
 
14
connection master;
 
15
LOAD DATA INFILE '../../std_data/rpl_loaddata.dat' INTO TABLE t1;
 
16
 
 
17
connection slave;
 
18
call mtr.add_suppression("Slave SQL.*Fatal error: Not enough memory, Error_code: 1593");
 
19
let $slave_sql_errno= 1593;
 
20
let $show_slave_sql_error= 1;
 
21
source include/wait_for_slave_sql_error_and_skip.inc;
 
22
 
 
23
connection master;
 
24
DROP TABLE t1;
 
25
sync_slave_with_master;
 
26
 
 
27
--source include/rpl_end.inc