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
3cee665a
Commit
3cee665a
authored
Aug 12, 2019
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17847 Galera test failure on MW-328[A|B|C]
Test changes only.
parent
609ea2f3
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
55 additions
and
28 deletions
+55
-28
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+0
-3
mysql-test/suite/galera/r/MW-328A.result
mysql-test/suite/galera/r/MW-328A.result
+20
-5
mysql-test/suite/galera/r/MW-328B.result
mysql-test/suite/galera/r/MW-328B.result
+1
-1
mysql-test/suite/galera/r/MW-328C.result
mysql-test/suite/galera/r/MW-328C.result
+1
-1
mysql-test/suite/galera/t/MW-328-footer.inc
mysql-test/suite/galera/t/MW-328-footer.inc
+1
-1
mysql-test/suite/galera/t/MW-328A.test
mysql-test/suite/galera/t/MW-328A.test
+31
-11
mysql-test/suite/galera/t/MW-328B.test
mysql-test/suite/galera/t/MW-328B.test
+0
-2
mysql-test/suite/galera/t/MW-328C.test
mysql-test/suite/galera/t/MW-328C.test
+1
-2
mysql-test/suite/galera/t/MW-328D.test
mysql-test/suite/galera/t/MW-328D.test
+0
-1
mysql-test/suite/galera/t/MW-328E.test
mysql-test/suite/galera/t/MW-328E.test
+0
-1
No files found.
mysql-test/suite/galera/disabled.def
View file @
3cee665a
...
...
@@ -11,9 +11,6 @@
##############################################################################
MW-286 : MDEV-19992 Galera test failure on MW-286
MW-328A : MDEV-17847 Galera test failure on MW-328[A|B|C]
MW-328B : MDEV-17847 Galera test failure on MW-328[A|B|C]
MW-328C : MDEV-17847 Galera test failure on MW-328[A|B|C]
MW-329 : MDEV-19962 Galera test failure on MW-329
MW-388: MDEV-19803 Long semaphore wait error on galera.MW-388
galera_account_management : MariaDB 10.0 does not support ALTER USER
...
...
mysql-test/suite/galera/r/MW-328A.result
View file @
3cee665a
...
...
@@ -14,14 +14,29 @@ connection node_1X;
CALL proc_update();;
connection node_2;
SET SESSION wsrep_retry_autocommit = 0;
have_successes
1
have_deadlocks
1
connection node_1;
connection node_1X;
Got one of the listed errors
connection node_1;
DROP PROCEDURE proc_update;
DROP TABLE t1, t2;
CALL mtr.add_suppression("conflict state 3 after post commit");
CALL mtr.add_suppression("conflict state ABORTED after post commit");
connection node_1;
CREATE TABLE t1 (i int primary key, j int) engine=innodb;
INSERT INTO t1 values (1,0);
BEGIN;
UPDATE t1 SET j=1 WHERE i=1;
connection node_2;
UPDATE t1 SET j=2 WHERE i=1;
connection node_1;
COMMIT;
ERROR 40001: Deadlock: wsrep aborted transaction
SELECT * FROM t1;
i j
1 2
connection node_2;
SELECT * FROM t1;
i j
1 2
connection node_1;
DROP TABLE t1;
mysql-test/suite/galera/r/MW-328B.result
View file @
3cee665a
...
...
@@ -20,4 +20,4 @@ Got one of the listed errors
connection node_1;
DROP PROCEDURE proc_update;
DROP TABLE t1, t2;
CALL mtr.add_suppression("conflict state
3
after post commit");
CALL mtr.add_suppression("conflict state
ABORTED
after post commit");
mysql-test/suite/galera/r/MW-328C.result
View file @
3cee665a
...
...
@@ -20,4 +20,4 @@ Got one of the listed errors
connection node_1;
DROP PROCEDURE proc_update;
DROP TABLE t1, t2;
CALL mtr.add_suppression("conflict state
3
after post commit");
CALL mtr.add_suppression("conflict state
ABORTED
after post commit");
mysql-test/suite/galera/t/MW-328-footer.inc
View file @
3cee665a
...
...
@@ -15,4 +15,4 @@
DROP
PROCEDURE
proc_update
;
DROP
TABLE
t1
,
t2
;
CALL
mtr
.
add_suppression
(
"conflict state
3
after post commit"
);
CALL
mtr
.
add_suppression
(
"conflict state
ABORTED
after post commit"
);
mysql-test/suite/galera/t/MW-328A.test
View file @
3cee665a
...
...
@@ -3,13 +3,16 @@
#
#
# Attempt to insert into t2 and check if insert actually inserted rows if
# a success was reported.
# test phase 1 is not deterministic
#
# Here we attempt to insert into t2 and check if insert actually
# inserted rows if a success was reported.
#
# However, deadlocks may or may not happen in this test execution
# it all depends on timing.
#
--
source
include
/
big_test
.
inc
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
suite
/
galera
/
t
/
MW
-
328
-
header
.
inc
--
connection
node_2
...
...
@@ -25,7 +28,7 @@ while ($count)
{
TRUNCATE
TABLE
t2
;
--
error
0
,
1213
--
error
0
,
ER_LOCK_DEADLOCK
INSERT
IGNORE
INTO
t2
SELECT
f2
FROM
t1
;
if
(
$mysql_errno
!=
1213
)
{
--
inc
$successes
...
...
@@ -44,14 +47,31 @@ while ($count)
--
enable_query_log
--
source
suite
/
galera
/
t
/
MW
-
328
-
footer
.
inc
#
# Check that the test produced both deadlocks and successes
# Test phase 2 is deterministic
# Here we generate a sure conflict in node 1 and verify that
# insert failed in both nodes
#
--
connection
node_1
CREATE
TABLE
t1
(
i
int
primary
key
,
j
int
)
engine
=
innodb
;
INSERT
INTO
t1
values
(
1
,
0
);
--
disable_query_log
--
eval
SELECT
$successes
>
0
AS
have_successes
--
eval
SELECT
$deadlocks
>
0
AS
have_deadlocks
--
enable_query_log
BEGIN
;
UPDATE
t1
SET
j
=
1
WHERE
i
=
1
;
--
connection
node_2
UPDATE
t1
SET
j
=
2
WHERE
i
=
1
;
--
source
suite
/
galera
/
t
/
MW
-
328
-
footer
.
inc
--
connection
node_1
--
error
ER_LOCK_DEADLOCK
COMMIT
;
SELECT
*
FROM
t1
;
--
connection
node_2
SELECT
*
FROM
t1
;
--
connection
node_1
DROP
TABLE
t1
;
mysql-test/suite/galera/t/MW-328B.test
View file @
3cee665a
...
...
@@ -7,9 +7,7 @@
# gets the deadlock error
#
--
source
include
/
big_test
.
inc
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
suite
/
galera
/
t
/
MW
-
328
-
header
.
inc
--
connection
node_2
...
...
mysql-test/suite/galera/t/MW-328C.test
View file @
3cee665a
...
...
@@ -7,9 +7,8 @@
# masks all deadlock errors
#
--
source
include
/
big_test
.
inc
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
big_test
.
inc
--
source
suite
/
galera
/
t
/
MW
-
328
-
header
.
inc
--
connection
node_2
...
...
mysql-test/suite/galera/t/MW-328D.test
View file @
3cee665a
...
...
@@ -7,7 +7,6 @@
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
CREATE
TABLE
t1
(
i
INT
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
(
i
)
VALUES
(
1
);
...
...
mysql-test/suite/galera/t/MW-328E.test
View file @
3cee665a
...
...
@@ -7,7 +7,6 @@
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
create
table
t1
(
i
int
primary
key
,
j
int
)
engine
=
innodb
;
create
table
t2
(
i
int
primary
key
,
j
int
)
engine
=
innodb
;
...
...
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