Added option --staging-run to mysql-test-run to mark slow, not important tests, to not be run in staging trees
Use MY_MUTEX_INIT_FAST for pool mutex
mysql-test/mysql-test-run.pl:
Added option --staging-run
Added information about --parallell=# to help message
mysql-test/suite/federated/federated_server.test:
Slow test, don't run with --staging-run
mysql-test/suite/maria/t/maria-preload.test:
Slow test, don't run with --staging-run
mysql-test/suite/rpl/t/rpl_optimize.test:
Slow test, don't run with --staging-run
mysql-test/suite/rpl/t/rpl_relayrotate.test:
Slow test, don't run with --staging-run
mysql-test/suite/rpl/t/rpl_row_001.test:
Slow test, don't run with --staging-run
mysql-test/suite/rpl/t/rpl_row_mysqlbinlog.test:
Slow test, don't run with --staging-run
mysql-test/suite/rpl/t/rpl_row_sp003.test:
Slow test, don't run with --staging-run
mysql-test/suite/rpl/t/rpl_start_stop_slave.test:
Slow test, don't run with --staging-run
mysql-test/t/compress.test:
Slow test, don't run with --staging-run
mysql-test/t/count_distinct3.test:
Slow test, don't run with --staging-run
mysql-test/t/index_merge_innodb.test:
Slow test, don't run with --staging-run
mysql-test/t/information_schema_all_engines.test:
Slow test, don't run with --staging-run
mysql-test/t/innodb_mysql.test:
Slow test, don't run with --staging-run
mysql-test/t/pool_of_threads.test:
Slow test, don't run with --staging-run
mysql-test/t/preload.test:
Slow test, don't run with --staging-run
mysql-test/t/ssl.test:
Slow test, don't run with --staging-run
mysql-test/t/ssl_compress.test:
Slow test, don't run with --staging-run
mysql-test/valgrind.supp:
Suppress warnings from SuSE 11.1 on x86
sql/scheduler.cc:
Use MY_MUTEX_INIT_FAST for pool mutex
2009-06-05 18:35:22 +03:00
|
|
|
# Slow test, don't run during staging part
|
2011-04-25 17:22:25 +02:00
|
|
|
source include/not_staging.inc;
|
2004-11-25 09:26:45 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Bug#6148 ()
|
|
|
|
#
|
|
|
|
# Let the master do lots of insertions
|
2009-11-03 19:02:56 +00:00
|
|
|
|
|
|
|
connection master;
|
2010-04-28 14:47:49 +02:00
|
|
|
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
2009-11-03 19:02:56 +00:00
|
|
|
|
|
|
|
connection slave;
|
2010-04-28 14:47:49 +02:00
|
|
|
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
2009-11-03 19:02:56 +00:00
|
|
|
|
2004-11-25 09:26:45 +01:00
|
|
|
connection master;
|
|
|
|
create table t1(n int);
|
2007-12-06 18:27:10 +03:00
|
|
|
sync_slave_with_master;
|
|
|
|
stop slave;
|
2009-11-28 02:34:47 +03:00
|
|
|
--source include/wait_for_slave_to_stop.inc
|
2007-12-06 18:27:10 +03:00
|
|
|
connection master;
|
2011-05-03 14:01:11 +02:00
|
|
|
let $1=2500;
|
2004-11-25 09:26:45 +01:00
|
|
|
disable_query_log;
|
|
|
|
while ($1)
|
|
|
|
{
|
|
|
|
eval insert into t1 values($1);
|
|
|
|
dec $1;
|
|
|
|
}
|
|
|
|
enable_query_log;
|
|
|
|
save_master_pos;
|
|
|
|
|
|
|
|
connection slave;
|
|
|
|
start slave;
|
2007-12-06 18:27:10 +03:00
|
|
|
let $wait_condition= SELECT COUNT(*) > 0 FROM t1;
|
|
|
|
source include/wait_condition.inc;
|
2004-11-25 09:26:45 +01:00
|
|
|
stop slave io_thread;
|
|
|
|
start slave io_thread;
|
2008-12-12 14:25:36 +03:00
|
|
|
source include/wait_for_slave_to_start.inc;
|
2004-11-25 09:26:45 +01:00
|
|
|
sync_with_master;
|
|
|
|
|
|
|
|
connection master;
|
|
|
|
drop table t1;
|
2009-11-28 02:34:47 +03:00
|
|
|
sync_slave_with_master;
|
2005-07-28 03:22:47 +03:00
|
|
|
|
2009-03-26 10:25:06 +02:00
|
|
|
|
|
|
|
#
|
2009-04-09 16:05:41 +03:00
|
|
|
# Bug#38205 Row-based Replication (RBR) causes inconsistencies...
|
|
|
|
# Bug#319 if while a non-transactional slave is replicating a transaction...
|
2009-03-26 10:25:06 +02:00
|
|
|
#
|
|
|
|
# Verifying that STOP SLAVE does not interrupt excution of a group
|
|
|
|
# execution of events if the group can not roll back.
|
|
|
|
# Killing the sql thread continues to provide a "hard" stop (the
|
|
|
|
# part II, moved to the bugs suite as it's hard to make it
|
|
|
|
# deterministic with KILL).
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Part I. The being stopped sql thread finishes first the current group of
|
|
|
|
# events if the group contains an event on a non-transaction table.
|
|
|
|
|
|
|
|
connection master;
|
|
|
|
create table t1i(n int primary key) engine=innodb;
|
|
|
|
create table t2m(n int primary key) engine=myisam;
|
|
|
|
begin;
|
|
|
|
insert into t1i values (1);
|
|
|
|
insert into t1i values (2);
|
|
|
|
insert into t1i values (3);
|
|
|
|
commit;
|
|
|
|
|
|
|
|
sync_slave_with_master;
|
|
|
|
connection slave;
|
|
|
|
begin;
|
|
|
|
insert into t1i values (5);
|
|
|
|
|
|
|
|
connection master;
|
|
|
|
let $pos0_master= query_get_value(SHOW MASTER STATUS, Position, 1);
|
|
|
|
begin;
|
|
|
|
insert into t1i values (4);
|
|
|
|
insert into t2m values (1); # non-ta update to process
|
|
|
|
insert into t1i values (5); # to block at. to be played with stopped
|
|
|
|
commit;
|
|
|
|
|
|
|
|
connection slave;
|
|
|
|
# slave sql thread must be locked out by the conn `slave' explicit lock
|
|
|
|
let $pos0_slave= query_get_value(SHOW SLAVE STATUS, Exec_Master_Log_Pos, 1);
|
|
|
|
--disable_query_log
|
|
|
|
eval select $pos0_master - $pos0_slave as zero;
|
|
|
|
--enable_query_log
|
|
|
|
|
|
|
|
connection slave1;
|
|
|
|
let $count= 1;
|
|
|
|
let $table= t2m;
|
|
|
|
source include/wait_until_rows_count.inc;
|
|
|
|
send stop slave;
|
|
|
|
|
|
|
|
connection slave;
|
|
|
|
rollback; # release the sql thread
|
|
|
|
|
|
|
|
connection slave1;
|
|
|
|
reap;
|
|
|
|
source include/wait_for_slave_to_stop.inc;
|
|
|
|
let $sql_status= query_get_value(SHOW SLAVE STATUS, Slave_SQL_Running, 1);
|
2009-04-09 16:05:41 +03:00
|
|
|
--echo *** sql thread is *not* running: $sql_status ***
|
2009-03-26 10:25:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
connection master;
|
|
|
|
let $pos1_master= query_get_value(SHOW MASTER STATUS, Position, 1);
|
|
|
|
|
|
|
|
connection slave;
|
|
|
|
|
|
|
|
let $pos1_slave= query_get_value(SHOW SLAVE STATUS, Exec_Master_Log_Pos, 1);
|
|
|
|
|
|
|
|
--echo *** the prove: the stopped slave has finished the current transaction ***
|
|
|
|
|
|
|
|
--disable_query_log
|
|
|
|
select count(*) as five from t1i;
|
|
|
|
eval select $pos1_master - $pos1_slave as zero;
|
|
|
|
eval select $pos1_slave > $pos0_slave as one;
|
|
|
|
--enable_query_log
|
|
|
|
|
2009-04-09 16:05:41 +03:00
|
|
|
source include/start_slave.inc;
|
2009-03-26 10:25:06 +02:00
|
|
|
|
|
|
|
# clean-up
|
|
|
|
connection master;
|
|
|
|
drop table t1i, t2m;
|
|
|
|
|
|
|
|
sync_slave_with_master;
|
|
|
|
|
2010-10-13 22:54:07 -03:00
|
|
|
--echo #
|
|
|
|
--echo # Bug#56096 STOP SLAVE hangs if executed in parallel with user sleep
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
--connection master
|
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
DROP TABLE IF EXISTS t1;
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
CREATE TABLE t1 (a INT );
|
|
|
|
|
|
|
|
sync_slave_with_master;
|
|
|
|
|
|
|
|
--connection slave1
|
|
|
|
--echo # Slave1: lock table for synchronization
|
|
|
|
LOCK TABLES t1 WRITE;
|
|
|
|
|
|
|
|
--connection master
|
|
|
|
--echo # Master: insert into the table
|
|
|
|
INSERT INTO t1 SELECT SLEEP(4);
|
|
|
|
|
|
|
|
--connection slave
|
|
|
|
--echo # Slave: wait for the insert
|
|
|
|
let $wait_condition=
|
|
|
|
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST
|
|
|
|
WHERE STATE = "Waiting for table metadata lock"
|
|
|
|
AND INFO = "INSERT INTO t1 SELECT SLEEP(4)";
|
|
|
|
--source include/wait_condition.inc
|
|
|
|
|
|
|
|
--echo # Slave: send slave stop
|
|
|
|
--send STOP SLAVE
|
|
|
|
|
|
|
|
--connection slave1
|
|
|
|
--echo # Slave1: wait for stop slave
|
|
|
|
let $wait_condition=
|
|
|
|
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST
|
|
|
|
WHERE INFO = "STOP SLAVE";
|
|
|
|
--source include/wait_condition.inc
|
|
|
|
|
|
|
|
--echo # Slave1: unlock the table
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
--connection slave
|
|
|
|
--echo # Slave: wait for the slave to stop
|
|
|
|
--reap
|
|
|
|
--source include/wait_for_slave_to_stop.inc
|
|
|
|
|
|
|
|
--echo # Start slave again
|
|
|
|
--source include/start_slave.inc
|
|
|
|
|
|
|
|
--echo # Clean up
|
|
|
|
--connection master
|
|
|
|
DROP TABLE t1;
|
|
|
|
sync_slave_with_master;
|
2012-01-18 00:16:19 +02:00
|
|
|
|
|
|
|
#
|
2012-01-19 16:44:09 +02:00
|
|
|
# bug#3593869-64035 attempt to read a member of event_coordinates
|
|
|
|
# referenced by NULL pointer crashes server.
|
2012-01-18 00:16:19 +02:00
|
|
|
# Testing how out of valid range position value is handled with an error.
|
|
|
|
#
|
|
|
|
|
|
|
|
--connection master
|
|
|
|
RESET MASTER;
|
|
|
|
let $master_pos= query_get_value(SHOW MASTER STATUS, Position, 1);
|
|
|
|
let $master_pos= `SELECT $master_pos + 1`;
|
|
|
|
|
|
|
|
--connection slave
|
|
|
|
--source include/stop_slave.inc
|
|
|
|
--replace_regex /[0-9]+/MASTER_POS/
|
|
|
|
eval CHANGE MASTER TO master_log_pos=$master_pos;
|
|
|
|
|
|
|
|
START SLAVE;
|
|
|
|
# ER_MASTER_FATAL_ERROR_READING_BINLOG 1236
|
|
|
|
--let $slave_param=Last_IO_Errno
|
|
|
|
--let $slave_param_value=1236
|
|
|
|
--source include/wait_for_slave_param.inc
|
|
|
|
|
2012-01-19 16:56:43 +00:00
|
|
|
--let $slave_field_result_replace= / at [0-9]*/ at XXX/
|
2012-01-18 00:16:19 +02:00
|
|
|
--let $status_items= Last_IO_Errno, Last_IO_Error
|
|
|
|
--source include/show_slave_status.inc
|
|
|
|
|
|
|
|
--source include/stop_slave.inc
|
|
|
|
RESET SLAVE;
|
|
|
|
|
|
|
|
--connection master
|
|
|
|
RESET MASTER;
|
|
|
|
|
|
|
|
# Slave is stopped by bug#3593869-64035 tests.
|