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
0d5c605b
Commit
0d5c605b
authored
Apr 10, 2017
by
Teemu Ollakka
Committed by
Jan Lindström
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MW-369 Fixed test MW-369D, recorded MW-369C, MW-369D
parent
396770fb
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
3 deletions
+71
-3
mysql-test/suite/galera/r/MW-369A.result
mysql-test/suite/galera/r/MW-369A.result
+1
-0
mysql-test/suite/galera/r/MW-369B.result
mysql-test/suite/galera/r/MW-369B.result
+1
-0
mysql-test/suite/galera/r/MW-369C.result
mysql-test/suite/galera/r/MW-369C.result
+30
-0
mysql-test/suite/galera/r/MW-369D.result
mysql-test/suite/galera/r/MW-369D.result
+31
-0
mysql-test/suite/galera/t/MW-369.inc
mysql-test/suite/galera/t/MW-369.inc
+1
-0
mysql-test/suite/galera/t/MW-369C.test
mysql-test/suite/galera/t/MW-369C.test
+2
-0
mysql-test/suite/galera/t/MW-369D.test
mysql-test/suite/galera/t/MW-369D.test
+5
-3
No files found.
mysql-test/suite/galera/r/MW-369A.result
View file @
0d5c605b
...
...
@@ -16,6 +16,7 @@ SET GLOBAL wsrep_provider_options = 'dbug=d,local_monitor_enter_sync';
COMMIT;
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync';
SET GLOBAL wsrep_provider_options = 'signal=local_monitor_enter_sync';
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
...
...
mysql-test/suite/galera/r/MW-369B.result
View file @
0d5c605b
...
...
@@ -18,6 +18,7 @@ SET GLOBAL wsrep_provider_options = 'dbug=d,local_monitor_enter_sync';
COMMIT;
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync';
SET GLOBAL wsrep_provider_options = 'signal=local_monitor_enter_sync';
SELECT * FROM p;
...
...
mysql-test/suite/galera/r/MW-369C.result
0 → 100644
View file @
0d5c605b
CREATE TABLE p (f1 INTEGER PRIMARY KEY, f2 INTEGER) ENGINE=INNODB;
CREATE TABLE c (f1 INTEGER PRIMARY KEY, p_id INTEGER,
CONSTRAINT fk_1 FOREIGN KEY (p_id) REFERENCES p (f1)) ;
INSERT INTO p VALUES (1, 0);
INSERT INTO p VALUES (2, 0);
INSERT INTO c VALUES (1, 1);
SET AUTOCOMMIT=ON;
START TRANSACTION;
UPDATE p SET f2 = 1 WHERE f1 = 1;
SET SESSION wsrep_sync_wait = 0;
SET GLOBAL wsrep_provider_options = 'dbug=d,apply_monitor_slave_enter_sync';
DELETE FROM c WHERE f1 = 1;
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'dbug=d,local_monitor_enter_sync';
COMMIT;
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync';
SET GLOBAL wsrep_provider_options = 'signal=local_monitor_enter_sync';
SELECT * FROM p;
f1 f2
1 1
2 0
SELECT * FROM c;
f1 p_id
DROP TABLE c;
DROP TABLE p;
mysql-test/suite/galera/r/MW-369D.result
0 → 100644
View file @
0d5c605b
CREATE TABLE p (f1 INTEGER PRIMARY KEY, f2 INTEGER) ENGINE=INNODB;
CREATE TABLE c (f1 INTEGER PRIMARY KEY, p_id INTEGER,
CONSTRAINT fk_1 FOREIGN KEY (p_id) REFERENCES p (f1)) ;
INSERT INTO p VALUES (1, 0);
INSERT INTO p VALUES (2, 0);
SET AUTOCOMMIT=ON;
START TRANSACTION;
UPDATE p SET f2 = 1 WHERE f1 = 1;
SET SESSION wsrep_sync_wait = 0;
SET GLOBAL wsrep_provider_options = 'dbug=d,apply_monitor_slave_enter_sync';
INSERT INTO c VALUES (1, 1);
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'dbug=d,local_monitor_enter_sync';
COMMIT;
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync';
SET GLOBAL wsrep_provider_options = 'signal=local_monitor_enter_sync';
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
SELECT * FROM p;
f1 f2
1 0
2 0
SELECT * FROM c;
f1 p_id
1 1
DROP TABLE c;
DROP TABLE p;
mysql-test/suite/galera/t/MW-369.inc
View file @
0d5c605b
...
...
@@ -61,6 +61,7 @@ SET SESSION wsrep_sync_wait = 0;
--
connection
node_1a
--
let
$galera_sync_point
=
apply_monitor_slave_enter_sync
local_monitor_enter_sync
--
source
include
/
galera_wait_sync_point
.
inc
--
source
include
/
galera_clear_sync_point
.
inc
--
let
$galera_sync_point
=
apply_monitor_slave_enter_sync
--
source
include
/
galera_signal_sync_point
.
inc
--
let
$galera_sync_point
=
local_monitor_enter_sync
...
...
mysql-test/suite/galera/t/MW-369C.test
View file @
0d5c605b
...
...
@@ -16,9 +16,11 @@
#
# Expected Outcome:
# ================
#
# Both operations on node_1 and node_2 should succeed without conflicts.
# The parent table should contain values (1, 1), (2, 0) and the child
# table should be empty.
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
...
...
mysql-test/suite/galera/t/MW-369D.test
View file @
0d5c605b
...
...
@@ -15,9 +15,10 @@
#
# Expected Outcome:
# ================
# Both operations on node_1 and node_2 should succeed without conflicts.
# The parent table should contain values (1, 1), (2, 0) and the child
# table should contain a row (1, 1)
#
# The parent operation on connection node_1 will conflict with an insert
# to node_2. The parent table will contain rows (1, 0), (2, 0) and
# the child table will contain row (1, 1).
#
--
source
include
/
galera_cluster
.
inc
...
...
@@ -38,6 +39,7 @@ INSERT INTO p VALUES (2, 0);
# Commit succeeds
--
connection
node_1
--
error
ER_LOCK_DEADLOCK
--
reap
--
connection
node_2
...
...
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