mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
a63ef17fca
into dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl include/my_base.h: Auto merged mysql-test/include/show_binlog_events2.inc: Auto merged mysql-test/suite/binlog/t/binlog_old_versions.test: Auto merged mysql-test/suite/rpl/r/rpl_row_tabledefs_2myisam.result: Auto merged mysql-test/suite/rpl/r/rpl_row_tabledefs_3innodb.result: Auto merged mysql-test/suite/rpl/t/rpl_loaddata_map-master.opt: Auto merged mysql-test/suite/rpl/t/rpl_loaddata_map-slave.opt: Auto merged sql/log_event_old.cc: Auto merged sql/sql_binlog.cc: Auto merged mysql-test/suite/rpl/r/rpl_loaddata_map.result: Manual merge. mysql-test/suite/rpl/r/rpl_user.result: Manual merge. mysql-test/suite/rpl/t/rpl_loaddata_map.test: Manual merge. mysql-test/suite/rpl/t/rpl_user.test: Manual merge. sql/log_event.cc: Manual merge. sql/rpl_record.cc: Manual merge.
54 lines
1.7 KiB
Text
54 lines
1.7 KiB
Text
#
|
|
# check replication of load data with the server parameters subjected to
|
|
# read_buffer_size > max_allowed_packet
|
|
#
|
|
# BUG#30435 loading large LOAD DATA INFILE breaks slave with
|
|
# read_buffer_size set on master
|
|
# BUG#33413 show binlog events fails if binlog has event size of close
|
|
# to max_allowed_packet
|
|
|
|
source include/have_binlog_format_mixed_or_statement.inc;
|
|
source include/master-slave.inc;
|
|
source include/have_innodb.inc;
|
|
source include/have_binlog_format_mixed_or_statement.inc;
|
|
|
|
--disable_query_log
|
|
let $rows= 5000;
|
|
create table t1 (id int not null primary key auto_increment);
|
|
|
|
while($rows)
|
|
{
|
|
eval insert into t1 values (null);
|
|
dec $rows;
|
|
}
|
|
eval select * into outfile '$MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' from t1;
|
|
flush logs;
|
|
--enable_query_log
|
|
|
|
connection master;
|
|
create table t2 (id int not null primary key auto_increment);
|
|
|
|
select @@session.read_buffer_size - @@session.max_allowed_packet > 0 ;
|
|
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval load data infile '$MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2;
|
|
select count(*) from t2 /* 5 000 */;
|
|
|
|
# the binglog will show fragmented Append_block events
|
|
--let $binlog_start=106
|
|
--replace_column 2 # 4 # 5 #
|
|
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /file_id=[0-9]+/file_id=#/ /block_len=[0-9]+/block_len=#/
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $binlog_start <binlog_start>
|
|
--eval show binlog events in 'master-bin.000002' from $binlog_start
|
|
|
|
|
|
sync_slave_with_master;
|
|
#connection slave;
|
|
select count(*) from t2 /* 5 000 */;
|
|
|
|
connection master;
|
|
drop table t1, t2;
|
|
sync_slave_with_master;
|
|
remove_file $MYSQLTEST_VARDIR/tmp/bug30435_5k.txt;
|
|
|
|
--echo end of the tests
|