mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Speed up some PBXT tests by adding begin...commit around creating of testing tables. include/my_base.h: Fixed wrong constant mysql-test/mysql-test-run.pl: Print MariaDB instead of MySQL mysql-test/r/range.result: Move test that required partitions to parts.optimizer mysql-test/suite/innodb_plugin/t/disabled.def: Disable test that causes valgrind warning about not released memory in xtradb mysql-test/suite/parts/r/optimizer.result: Moved from range.result mysql-test/suite/parts/t/optimizer.test: Moved from range.test mysql-test/suite/pbxt/r/join_nested.result: Updated results after optimizer changes mysql-test/suite/pbxt/r/renamedb.result: Updated test for new error message mysql-test/suite/pbxt/t/check.test: Speed up test mysql-test/suite/pbxt/t/count_distinct2.test: Speed up test mysql-test/suite/pbxt/t/derived.test: Speed up test mysql-test/suite/pbxt/t/renamedb.test: Updated test for new error message mysql-test/suite/rpl/r/rpl_log_pos.result: Updated results mysql-test/suite/rpl/t/rpl_log_pos.test: Update test to read from a position that has 'known wrong' data. The orignal test read a timestamp, so the error message could differ between runs. mysql-test/suite/rpl/t/rpl_temporary_errors.test: Sync to slave to make test predictable mysql-test/t/events_time_zone.test: Extend wait to make test predictable mysql-test/t/range.test: Move test that required partitions to parts.optimizer sql/sql_list.h: Fixed compiler warning sql/sql_load.cc: buffer was not freed in some error conditions tests/mysql_client_test.c: Fixed compiler warning
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
##########
|
|
# Change Author: JBM
|
|
# Change Date: 2006-01-16
|
|
# Change: Added Order by for NDB
|
|
##########
|
|
|
|
#
|
|
# Testing of setting slave to wrong log position with master_log_pos
|
|
#
|
|
|
|
# Passes with rbr no problem, removed statement include [jbm]
|
|
|
|
source include/master-slave.inc;
|
|
|
|
#
|
|
# Add an event to get some information into the log we can try to parse
|
|
#
|
|
let $read_pos= query_get_value(SHOW MASTER STATUS, Position, 1);
|
|
create table if not exists t1 (n int);
|
|
drop table t1;
|
|
|
|
call mtr.add_suppression ("Slave I/O: Got fatal error 1236 from master when reading data from binary");
|
|
call mtr.add_suppression ("Error in Log_event::read_log_event");
|
|
source include/show_master_status.inc;
|
|
sync_slave_with_master;
|
|
source include/stop_slave.inc;
|
|
|
|
let $wrong_log_pos= `SELECT $read_pos+2`;
|
|
--replace_result $wrong_log_pos MASTER_LOG_POS
|
|
eval change master to master_log_pos=$wrong_log_pos;
|
|
start slave;
|
|
let $slave_io_errno= 1236;
|
|
let $show_slave_io_error= 1;
|
|
source include/wait_for_slave_io_error.inc;
|
|
--disable_warnings
|
|
source include/stop_slave.inc;
|
|
--enable_warnings
|
|
|
|
connection master;
|
|
source include/show_master_status.inc;
|
|
create table if not exists t1 (n int);
|
|
drop table if exists t1;
|
|
create table t1 (n int);
|
|
insert into t1 values (1),(2),(3);
|
|
save_master_pos;
|
|
connection slave;
|
|
--replace_result 4 MASTER_LOG_POS
|
|
change master to master_log_pos=4;
|
|
start slave;
|
|
sync_with_master;
|
|
select * from t1 ORDER BY n;
|
|
connection master;
|
|
drop table t1;
|
|
sync_slave_with_master;
|
|
|
|
--echo End of 5.0 tests
|