mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
##########################################################################
|
|
# This test verifies if the slave fails gracefully when the temporary
|
|
# file used to load data is removed while it is about to be used it.
|
|
# Similar errors are caught if the temporary directory is removed.
|
|
#
|
|
# Steps:
|
|
# 1 - Creates a table and populates it through "LOAD DATA INFILE".
|
|
# 2 - Catches error.
|
|
##########################################################################
|
|
|
|
--source include/have_binlog_format_mixed_or_statement.inc
|
|
--source include/have_innodb.inc
|
|
--source include/have_debug.inc
|
|
--source include/master-slave.inc
|
|
--source include/not_embedded.inc
|
|
|
|
##########################################################################
|
|
# Loading data
|
|
##########################################################################
|
|
connection master;
|
|
|
|
create table t1(a int not null auto_increment, b int, primary key(a)) engine=innodb;
|
|
|
|
start transaction;
|
|
insert into t1(b) values (1);
|
|
insert into t1(b) values (2);
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
|
commit;
|
|
|
|
##########################################################################
|
|
# Catch Error
|
|
##########################################################################
|
|
connection slave;
|
|
source include/wait_for_slave_sql_to_stop.inc;
|
|
|
|
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
|
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 # 35 # 36 #
|
|
--replace_regex /SQL_LOAD-[0-9]-[0-9]-[0-9]*/SQL_LOAD/
|
|
query_vertical show slave status;
|
|
|
|
##########################################################################
|
|
# Clean up
|
|
##########################################################################
|
|
connection master;
|
|
|
|
drop table t1;
|
|
|
|
connection slave;
|
|
|
|
drop table t1;
|
|
|
|
call mtr.add_suppression("Slave: Error writing file 'UNKNOWN' .Errcode: 9. Error_code: 3");
|