mirror of
https://github.com/MariaDB/server.git
synced 2025-04-09 00:35:40 +02:00
Fix sporadic failure of test case rpl.rpl_start_stop_slave
The test was expecting the I/O thread to be in a specific state, but thread scheduling may cause it to not yet have reached that state. So just have a loop that waits for the expected state to occur. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
parent
25e0224814
commit
8642453ce6
1 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue