Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fee61edd
Commit
fee61edd
authored
Jul 03, 2019
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19939: Galera test failure on galera_toi_ddl_fk_insert
Add sync wait to make sure selects see correct consistent db.
parent
24aa723a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
25 deletions
+24
-25
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+0
-1
mysql-test/suite/galera/r/galera_toi_ddl_fk_insert.result
mysql-test/suite/galera/r/galera_toi_ddl_fk_insert.result
+16
-15
mysql-test/suite/galera/t/galera_toi_ddl_fk_insert.test
mysql-test/suite/galera/t/galera_toi_ddl_fk_insert.test
+8
-9
No files found.
mysql-test/suite/galera/disabled.def
View file @
fee61edd
...
...
@@ -32,7 +32,6 @@ galera_parallel_autoinc_largetrx : MDEV-19746 Galera test failures because of ws
galera_parallel_autoinc_manytrx : MDEV-19746 Galera test failures because of wsrep_slave_threads identification
galera_ssl_upgrade : MDEV-19950 Galera test failure on galera_ssl_upgrade
galera_sst_mariabackup_encrypt_with_key : MDEV-19926 Galera SST tests fail
galera_toi_ddl_fk_insert : MDEV-19939: Galera test failure on galera_toi_ddl_fk_insert
galera_var_slave_threads : MDEV-19746 Galera test failures because of wsrep_slave_threads identification
galera_wan : MDEV-17259: Test failure on galera.galera_wan
mysql-test/suite/galera/r/galera_toi_ddl_fk_insert.result
View file @
fee61edd
CREATE TABLE ten (f1 INTEGER) ENGINE=InnoDB;
CREATE TABLE ten (f1 INTEGER
NOT NULL PRIMARY KEY
) ENGINE=InnoDB;
INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
CREATE TABLE parent (
id INT PRIMARY KEY AUTO_INCREMENT,
f2 INTEGER,
KEY (id)
f2 INTEGER
) ENGINE=InnoDB;
CREATE TABLE child (
id INT PRIMARY KEY AUTO_INCREMENT,
...
...
@@ -23,19 +22,21 @@ connection node_1b;
connection node_2;
connection node_2a;
connection node_1;
SELECT COUNT(*) = 20001 FROM parent;
COUNT(*) = 20001
1
SELECT COUNT(*) = 10000 FROM child;
COUNT(*) = 10000
1
SET SESSION wsrep_sync_wait=15;
SELECT COUNT(*) FROM parent;
COUNT(*)
20001
SELECT COUNT(*) FROM child;
COUNT(*)
10000
connection node_2;
SELECT COUNT(*) = 20001 FROM parent;
COUNT(*) = 20001
1
SELECT COUNT(*) = 10000 FROM child;
COUNT(*) = 10000
1
SET SESSION wsrep_sync_wait=15;
SELECT COUNT(*) FROM parent;
COUNT(*)
20001
SELECT COUNT(*) FROM child;
COUNT(*)
10000
DROP TABLE child;
DROP TABLE parent;
DROP TABLE ten;
mysql-test/suite/galera/t/galera_toi_ddl_fk_insert.test
View file @
fee61edd
...
...
@@ -6,13 +6,12 @@
# This test creates a new FK constraint while concurrent INSERTS are running
#
CREATE
TABLE
ten
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
CREATE
TABLE
ten
(
f1
INTEGER
NOT
NULL
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
INSERT
INTO
ten
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
CREATE
TABLE
parent
(
id
INT
PRIMARY
KEY
AUTO_INCREMENT
,
f2
INTEGER
,
KEY
(
id
)
f2
INTEGER
)
ENGINE
=
InnoDB
;
CREATE
TABLE
child
(
...
...
@@ -41,7 +40,6 @@ INSERT INTO parent VALUES (1, 0);
--
let
$galera_server_number
=
1
--
source
include
/
galera_connect
.
inc
--
connection
node_1b
--
sleep
2
--
send
ALTER
TABLE
child
ADD
FOREIGN
KEY
(
parent_id
)
REFERENCES
parent
(
id
);
--
connection
node_1a
...
...
@@ -57,14 +55,15 @@ INSERT INTO parent VALUES (1, 0);
--
reap
--
connection
node_1
SELECT
COUNT
(
*
)
=
20001
FROM
parent
;
SELECT
COUNT
(
*
)
=
10000
FROM
child
;
SET
SESSION
wsrep_sync_wait
=
15
;
SELECT
COUNT
(
*
)
FROM
parent
;
SELECT
COUNT
(
*
)
FROM
child
;
--
connection
node_2
SELECT
COUNT
(
*
)
=
20001
FROM
parent
;
SELECT
COUNT
(
*
)
=
10000
FROM
child
;
SET
SESSION
wsrep_sync_wait
=
15
;
SELECT
COUNT
(
*
)
FROM
parent
;
SELECT
COUNT
(
*
)
FROM
child
;
DROP
TABLE
child
;
DROP
TABLE
parent
;
DROP
TABLE
ten
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment