MDEV-20523: rpl.create_or_replace_mix, rpl.create_or_replace_statement failed in buildbot with wrong result
Wait for the disconnect of the other connection to complete, before running SHOW BINLOG EVENTS. Otherwise the DROP TEMPORARY TABLE that is binlogged during disconnect may not have appeared yet depending on thread scheduling. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
parent
0258ad545a
commit
36680b648a
@ -212,12 +212,19 @@ set @@session.binlog_format=default;
|
||||
drop temporary table if exists t9;
|
||||
|
||||
--connect(con1,localhost,root,,)
|
||||
--let $conid = `SELECT CONNECTION_ID()`
|
||||
set session binlog_format=default;
|
||||
create temporary table t9 (i int);
|
||||
--echo *** Must be no DROP logged for t9 when there was no CREATE, at disconnect too ***
|
||||
--disconnect con1
|
||||
|
||||
--connection server_1
|
||||
# The disconnect runs asynchroneously. Wait for it to complete, otherwise the
|
||||
# DROP TEMPORARY TABLE may not have been binlogged yet when SHOW BINLOG EVENTS
|
||||
# is run.
|
||||
--let $wait_condition= SELECT COUNT(*)=0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE ID=$conid
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--source include/show_binlog_events.inc
|
||||
|
||||
# Clean up
|
||||
|
Loading…
x
Reference in New Issue
Block a user