mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -9,10 +9,7 @@ connection slave;
|
||||
SET @old_parallel= @@GLOBAL.slave_parallel_threads;
|
||||
SET GLOBAL slave_parallel_threads=10;
|
||||
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4;
|
||||
FLUSH TABLES WITH READ LOCK;
|
||||
include/start_slave.inc
|
||||
include/wait_for_slave_param.inc [Seconds_Behind_Master]
|
||||
UNLOCK TABLES;
|
||||
connection master;
|
||||
CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES (1);
|
||||
|
@ -14,6 +14,12 @@ SET GLOBAL event_scheduler=on;
|
||||
let $wait_condition= SELECT count(*)>0 FROM t1;
|
||||
--source include/wait_condition.inc
|
||||
SET GLOBAL event_scheduler=off;
|
||||
# If the time rolls to the next whole second just at this point, a new event
|
||||
# run may be scheduled. Wait for this to disappear, otherwise we see occasional
|
||||
# test failures if the table gets dropped before the extra event run completes.
|
||||
# Expect 5 connections: default, master, master1, server_1, binlog dump thread
|
||||
--let $wait_condition= SELECT COUNT(*) = 5 FROM INFORMATION_SCHEMA.PROCESSLIST;
|
||||
--source include/wait_condition.inc
|
||||
SELECT DISTINCT a FROM t1;
|
||||
DELETE FROM t1;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# Test applies a large binlog, takes long under Valgrind with little benefit.
|
||||
--source include/not_valgrind.inc
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_partition.inc
|
||||
--source include/have_binlog_format_mixed_or_row.inc
|
||||
|
@ -28,14 +28,7 @@ SET GLOBAL slave_parallel_threads=10;
|
||||
--replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1
|
||||
eval CHANGE MASTER TO master_host='127.0.0.1', master_port=$SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4;
|
||||
|
||||
# Block execution yet when the blocked query timestamp has been already accounted
|
||||
FLUSH TABLES WITH READ LOCK;
|
||||
--source include/start_slave.inc
|
||||
--let $slave_param = Seconds_Behind_Master
|
||||
--let $slave_param_value = 1
|
||||
--let $slave_param_comparison= >=
|
||||
--source include/wait_for_slave_param.inc
|
||||
UNLOCK TABLES;
|
||||
|
||||
--connection master
|
||||
CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
|
@ -19,7 +19,17 @@
|
||||
--source include/master-slave.inc
|
||||
|
||||
connection slave;
|
||||
--let $connection_id=`SELECT id FROM information_schema.processlist where state LIKE 'Waiting for master to send event'`
|
||||
--let $i= 100
|
||||
while ($i > 0) {
|
||||
dec $i;
|
||||
--let $connection_id=`SELECT id FROM information_schema.processlist where state LIKE 'Waiting for master to send event'`
|
||||
if ($connection_id) {
|
||||
let $i= 0;
|
||||
}
|
||||
if ($i > 0) {
|
||||
--sleep 0.1
|
||||
}
|
||||
}
|
||||
|
||||
if(!$connection_id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user