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
665c01d1
Commit
665c01d1
authored
May 24, 2022
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-15794 : Test failure on galera.galera_var_retry_autocommit
Add expected error.
parent
82f45ef5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
mysql-test/suite/galera/r/galera_var_retry_autocommit.result
mysql-test/suite/galera/r/galera_var_retry_autocommit.result
+14
-15
mysql-test/suite/galera/t/galera_var_retry_autocommit.test
mysql-test/suite/galera/t/galera_var_retry_autocommit.test
+9
-7
No files found.
mysql-test/suite/galera/r/galera_var_retry_autocommit.result
View file @
665c01d1
...
...
@@ -12,9 +12,9 @@ connection node_2;
TRUNCATE TABLE t1;
connection node_1;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
SELECT COUNT(*)
= 0
FROM t1;
COUNT(*)
= 0
1
SELECT COUNT(*) FROM t1;
COUNT(*)
0
SET DEBUG_SYNC = 'RESET';
DROP TABLE t1;
connection node_1;
...
...
@@ -27,9 +27,9 @@ SET DEBUG_SYNC = 'now WAIT_FOR before_cert';
connection node_2;
TRUNCATE TABLE t1;
connection node_1;
SELECT COUNT(*)
= 1
FROM t1;
COUNT(*)
= 1
1
SELECT COUNT(*) FROM t1;
COUNT(*)
0
SET DEBUG_SYNC = 'RESET';
DROP TABLE t1;
connection node_1;
...
...
@@ -44,18 +44,17 @@ connection node_2;
TRUNCATE TABLE t1;
connection node_1a;
SET DEBUG_SYNC = 'now WAIT_FOR wsrep_retry_autocommit_reached';
SELECT COUNT(*)
= 0
FROM t1;
COUNT(*)
= 0
1
SELECT COUNT(*) FROM t1;
COUNT(*)
0
SET DEBUG_SYNC = 'now SIGNAL wsrep_retry_autocommit_continue WAIT_FOR before_cert';
connection node_2;
TRUNCATE TABLE t1;
connection node_1a;
SELECT COUNT(*)
= 0
FROM t1;
COUNT(*)
= 0
1
SELECT COUNT(*) FROM t1;
COUNT(*)
0
connection node_1;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
SET DEBUG_SYNC = 'RESET';
SET GLOBAL debug_dbug = NULL;
DROP TABLE t1;
...
...
@@ -66,8 +65,8 @@ SET GLOBAL debug_dbug = '+d,sync.wsrep_retry_autocommit';
SET DEBUG_SYNC = 'wsrep_before_certification SIGNAL before_cert WAIT_FOR continue EXECUTE 64';
INSERT INTO t1 VALUES (5);
connection node_1;
SELECT COUNT(*)
= 1
FROM t1;
COUNT(*)
= 1
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SET DEBUG_SYNC = 'RESET';
SET GLOBAL debug_dbug = NULL;
...
...
mysql-test/suite/galera/t/galera_var_retry_autocommit.test
View file @
665c01d1
...
...
@@ -30,7 +30,7 @@ TRUNCATE TABLE t1;
--
connection
node_1
--
error
ER_LOCK_DEADLOCK
--
reap
SELECT
COUNT
(
*
)
=
0
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
SET
DEBUG_SYNC
=
'RESET'
;
DROP
TABLE
t1
;
...
...
@@ -54,8 +54,9 @@ SET DEBUG_SYNC = 'now WAIT_FOR before_cert';
TRUNCATE
TABLE
t1
;
--
connection
node_1
--
error
0
,
ER_LOCK_DEADLOCK
--
reap
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
SET
DEBUG_SYNC
=
'RESET'
;
DROP
TABLE
t1
;
...
...
@@ -82,17 +83,17 @@ TRUNCATE TABLE t1;
--
connection
node_1a
SET
DEBUG_SYNC
=
'now WAIT_FOR wsrep_retry_autocommit_reached'
;
SELECT
COUNT
(
*
)
=
0
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
SET
DEBUG_SYNC
=
'now SIGNAL wsrep_retry_autocommit_continue WAIT_FOR before_cert'
;
--
connection
node_2
TRUNCATE
TABLE
t1
;
--
connection
node_1a
SELECT
COUNT
(
*
)
=
0
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
--
connection
node_1
--
error
ER_LOCK_DEADLOCK
--
error
0
,
ER_LOCK_DEADLOCK
--
reap
SET
DEBUG_SYNC
=
'RESET'
;
...
...
@@ -126,7 +127,7 @@ while ($count)
--
connection
node_1a
SET
DEBUG_SYNC
=
'now WAIT_FOR wsrep_retry_autocommit_reached'
;
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
SET
DEBUG_SYNC
=
'now SIGNAL wsrep_retry_autocommit_continue'
;
--
dec
$count
...
...
@@ -135,8 +136,9 @@ while ($count)
--
enable_query_log
--
connection
node_1
--
error
0
,
ER_LOCK_DEADLOCK
--
reap
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
SET
DEBUG_SYNC
=
'RESET'
;
SET
GLOBAL
debug_dbug
=
NULL
;
...
...
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