summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/rpl/t/rpl_loaddata_fatal.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/rpl/t/rpl_loaddata_fatal.test')
-rw-r--r--mysql-test/suite/rpl/t/rpl_loaddata_fatal.test27
1 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/t/rpl_loaddata_fatal.test b/mysql-test/suite/rpl/t/rpl_loaddata_fatal.test
new file mode 100644
index 00000000..4e87d6de
--- /dev/null
+++ b/mysql-test/suite/rpl/t/rpl_loaddata_fatal.test
@@ -0,0 +1,27 @@
+source include/have_binlog_format_statement.inc;
+source include/have_debug.inc;
+source include/master-slave.inc;
+
+# We do this little stunt to make sure that the slave has started
+# before we stop it again.
+connection master;
+CREATE TABLE t1 (a INT, b INT);
+INSERT INTO t1 VALUES (1,10);
+sync_slave_with_master;
+
+# Now we feed it a load data infile, which should make it stop with a
+# fatal error.
+connection master;
+LOAD DATA INFILE '../../std_data/rpl_loaddata.dat' INTO TABLE t1;
+
+connection slave;
+call mtr.add_suppression("Slave SQL.*Fatal error: Not enough memory, error.* 1593");
+let $slave_sql_errno= 1593;
+let $show_slave_sql_error= 1;
+source include/wait_for_slave_sql_error_and_skip.inc;
+
+connection master;
+DROP TABLE t1;
+sync_slave_with_master;
+
+--source include/rpl_end.inc