mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
BUG#20677: Sporadic failure of test case 'ndb_binlog_multi'.
Start test case with a dummy table create and drop. This ensures that NDB event subscription is properly set up before the real test starts, which otherwise could sometimes cause INSERT events to be lost. mysql-test/r/ndb_binlog_multi.result: Start test with dummy table create/drop to avoid a race. mysql-test/t/ndb_binlog_multi.test: Start test with dummy table create/drop to avoid a race.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2,t3;
|
||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2,t3;
|
||||||
|
CREATE TABLE t3 (dummy INT PRIMARY KEY) ENGINE = NDB;
|
||||||
|
DROP TABLE t3;
|
||||||
reset master;
|
reset master;
|
||||||
reset master;
|
reset master;
|
||||||
CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB;
|
CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB;
|
||||||
|
@ -4,11 +4,18 @@
|
|||||||
|
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
connection server2;
|
connection server2;
|
||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2,t3;
|
||||||
connection server1;
|
connection server1;
|
||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2,t3;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
|
|
||||||
|
# Dummy table create/drop to avoid a race where table is created
|
||||||
|
# before event subscription is set up, causing test failure (BUG#20677).
|
||||||
|
connection server2;
|
||||||
|
CREATE TABLE t3 (dummy INT PRIMARY KEY) ENGINE = NDB;
|
||||||
|
connection server1;
|
||||||
|
DROP TABLE t3;
|
||||||
|
|
||||||
# reset for test
|
# reset for test
|
||||||
connection server1;
|
connection server1;
|
||||||
reset master;
|
reset master;
|
||||||
|
Reference in New Issue
Block a user