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
ba0d8aef
Commit
ba0d8aef
authored
Aug 07, 2024
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rocksdb.unique_check: do not have two threads waiting on the same name
parent
d6444022
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
storage/rocksdb/mysql-test/rocksdb/r/unique_check.result
storage/rocksdb/mysql-test/rocksdb/r/unique_check.result
+4
-3
storage/rocksdb/mysql-test/rocksdb/t/unique_check.test
storage/rocksdb/mysql-test/rocksdb/t/unique_check.test
+4
-3
No files found.
storage/rocksdb/mysql-test/rocksdb/r/unique_check.result
View file @
ba0d8aef
...
...
@@ -66,12 +66,12 @@ id id2 value
2 1 2
truncate table t2;
connection con1;
set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go';
set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go
1
';
insert into t1 values (1,1);
connection default;
set debug_sync='now WAIT_FOR parked1';
connection con2;
set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go';
set debug_sync='rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go
2
';
insert into t2 values (1,1,1);
connection default;
set debug_sync='now WAIT_FOR parked2';
...
...
@@ -82,7 +82,8 @@ ERROR HY000: Lock wait timeout exceeded; try restarting transaction
insert into t2 values (2,1,2);
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
connection default;
set debug_sync='now SIGNAL go';
set debug_sync='now SIGNAL go1';
set debug_sync='now SIGNAL go2';
connection con1;
connection con2;
connection default;
...
...
storage/rocksdb/mysql-test/rocksdb/t/unique_check.test
View file @
ba0d8aef
...
...
@@ -102,14 +102,14 @@ truncate table t2;
# 4) simulating T1 GetForUpdate() -> T2 GetForUpdate(). T2 should fail with lock wait timeout.
connection
con1
;
set
debug_sync
=
'rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go'
;
set
debug_sync
=
'rocksdb.update_write_row_after_unique_check SIGNAL parked1 WAIT_FOR go
1
'
;
send
insert
into
t1
values
(
1
,
1
);
connection
default
;
set
debug_sync
=
'now WAIT_FOR parked1'
;
connection
con2
;
set
debug_sync
=
'rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go'
;
set
debug_sync
=
'rocksdb.update_write_row_after_unique_check SIGNAL parked2 WAIT_FOR go
2
'
;
send
insert
into
t2
values
(
1
,
1
,
1
);
connection
default
;
...
...
@@ -123,7 +123,8 @@ insert into t1 values (1,2);
insert
into
t2
values
(
2
,
1
,
2
);
connection
default
;
set
debug_sync
=
'now SIGNAL go'
;
set
debug_sync
=
'now SIGNAL go1'
;
set
debug_sync
=
'now SIGNAL go2'
;
connection
con1
;
reap
;
...
...
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