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
e6acddf1
Commit
e6acddf1
authored
Nov 14, 2023
by
Nikita Malyavin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main.alter_table_online_debug: fix race in XA tests
parent
d59d8836
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
mysql-test/main/alter_table_online_debug.result
mysql-test/main/alter_table_online_debug.result
+10
-10
mysql-test/main/alter_table_online_debug.test
mysql-test/main/alter_table_online_debug.test
+10
-10
No files found.
mysql-test/main/alter_table_online_debug.result
View file @
e6acddf1
...
@@ -1577,10 +1577,10 @@ xa begin 'x1';
...
@@ -1577,10 +1577,10 @@ xa begin 'x1';
update t set a = 2 where a = 1;
update t set a = 2 where a = 1;
xa end 'x1';
xa end 'x1';
xa prepare 'x1';
xa prepare 'x1';
set debug_sync= '
THD_cleanup_after_trans_cleanup signal xa_detach
';
set debug_sync= '
thread_end signal xa_detach wait_for close
';
disconnect con1;
disconnect con1;
connection con2;
connection con2;
set debug_sync= 'now wait_for xa_detach';
set debug_sync= 'now
signal close
wait_for xa_detach';
xa commit 'x1';
xa commit 'x1';
set debug_sync= 'now signal go';
set debug_sync= 'now signal go';
connection default;
connection default;
...
@@ -1596,10 +1596,10 @@ xa begin 'x2';
...
@@ -1596,10 +1596,10 @@ xa begin 'x2';
insert into t values (53);
insert into t values (53);
xa end 'x2';
xa end 'x2';
xa prepare 'x2';
xa prepare 'x2';
set debug_sync= '
THD_cleanup_after_trans_cleanup signal xa_detach
';
set debug_sync= '
thread_end signal xa_detach wait_for close
';
disconnect con1;
disconnect con1;
connection con2;
connection con2;
set debug_sync= 'now wait_for xa_detach';
set debug_sync= 'now
signal close
wait_for xa_detach';
xa rollback 'x2';
xa rollback 'x2';
set debug_sync= 'now signal go';
set debug_sync= 'now signal go';
connection default;
connection default;
...
@@ -1618,11 +1618,11 @@ insert into t values (3);
...
@@ -1618,11 +1618,11 @@ insert into t values (3);
xa end 'xuncommitted';
xa end 'xuncommitted';
xa prepare 'xuncommitted';
xa prepare 'xuncommitted';
set debug_sync= 'now signal go';
set debug_sync= 'now signal go';
set debug_sync= '
THD_cleanup_after_trans_cleanup signal xa_detach
';
set debug_sync= '
thread_end signal xa_detach wait_for close
';
disconnect con1;
disconnect con1;
connection default;
connection default;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
set debug_sync= 'now wait_for xa_detach';
set debug_sync= 'now
signal close
wait_for xa_detach';
xa rollback 'xuncommitted';
xa rollback 'xuncommitted';
select * from t;
select * from t;
a
a
...
@@ -1638,11 +1638,11 @@ insert into t values (3);
...
@@ -1638,11 +1638,11 @@ insert into t values (3);
xa end 'committed_later';
xa end 'committed_later';
xa prepare 'committed_later';
xa prepare 'committed_later';
set debug_sync= 'now signal go';
set debug_sync= 'now signal go';
set debug_sync= '
THD_cleanup_after_trans_cleanup signal xa_detach
';
set debug_sync= '
thread_end signal xa_detach wait_for close
';
disconnect con1;
disconnect con1;
connection default;
connection default;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
set debug_sync= 'now wait_for xa_detach';
set debug_sync= 'now
signal close
wait_for xa_detach';
xa commit 'committed_later';
xa commit 'committed_later';
select * from t;
select * from t;
a
a
...
@@ -1659,10 +1659,10 @@ ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
...
@@ -1659,10 +1659,10 @@ ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
insert into t values (5);
insert into t values (5);
xa end 'x1';
xa end 'x1';
xa prepare 'x1';
xa prepare 'x1';
set debug_sync= '
THD_cleanup_after_trans_cleanup signal xa_detach
';
set debug_sync= '
thread_end signal xa_detach wait_for close
';
disconnect con1;
disconnect con1;
connection con2;
connection con2;
set debug_sync= 'now wait_for xa_detach';
set debug_sync= 'now
signal close
wait_for xa_detach';
xa commit 'x1';
xa commit 'x1';
set debug_sync= 'now signal go';
set debug_sync= 'now signal go';
connection default;
connection default;
...
...
mysql-test/main/alter_table_online_debug.test
View file @
e6acddf1
...
@@ -1810,11 +1810,11 @@ xa begin 'x1';
...
@@ -1810,11 +1810,11 @@ xa begin 'x1';
update
t
set
a
=
2
where
a
=
1
;
update
t
set
a
=
2
where
a
=
1
;
xa
end
'x1'
;
xa
end
'x1'
;
xa
prepare
'x1'
;
xa
prepare
'x1'
;
set
debug_sync
=
'
THD_cleanup_after_trans_cleanup signal xa_detach
'
;
set
debug_sync
=
'
thread_end signal xa_detach wait_for close
'
;
--
disconnect
con1
--
disconnect
con1
--
connection
con2
--
connection
con2
set
debug_sync
=
'now wait_for xa_detach'
;
set
debug_sync
=
'now
signal close
wait_for xa_detach'
;
xa
commit
'x1'
;
xa
commit
'x1'
;
set
debug_sync
=
'now signal go'
;
set
debug_sync
=
'now signal go'
;
--
connection
default
--
connection
default
...
@@ -1832,11 +1832,11 @@ xa begin 'x2';
...
@@ -1832,11 +1832,11 @@ xa begin 'x2';
insert
into
t
values
(
53
);
insert
into
t
values
(
53
);
xa
end
'x2'
;
xa
end
'x2'
;
xa
prepare
'x2'
;
xa
prepare
'x2'
;
set
debug_sync
=
'
THD_cleanup_after_trans_cleanup signal xa_detach
'
;
set
debug_sync
=
'
thread_end signal xa_detach wait_for close
'
;
--
disconnect
con1
--
disconnect
con1
--
connection
con2
--
connection
con2
set
debug_sync
=
'now wait_for xa_detach'
;
set
debug_sync
=
'now
signal close
wait_for xa_detach'
;
xa
rollback
'x2'
;
xa
rollback
'x2'
;
set
debug_sync
=
'now signal go'
;
set
debug_sync
=
'now signal go'
;
--
connection
default
--
connection
default
...
@@ -1858,13 +1858,13 @@ insert into t values (3);
...
@@ -1858,13 +1858,13 @@ insert into t values (3);
xa
end
'xuncommitted'
;
xa
end
'xuncommitted'
;
xa
prepare
'xuncommitted'
;
xa
prepare
'xuncommitted'
;
set
debug_sync
=
'now signal go'
;
set
debug_sync
=
'now signal go'
;
set
debug_sync
=
'
THD_cleanup_after_trans_cleanup signal xa_detach
'
;
set
debug_sync
=
'
thread_end signal xa_detach wait_for close
'
;
--
disconnect
con1
--
disconnect
con1
--
connection
default
--
connection
default
--
error
ER_LOCK_WAIT_TIMEOUT
--
error
ER_LOCK_WAIT_TIMEOUT
--
reap
# alter table
--
reap
# alter table
set
debug_sync
=
'now wait_for xa_detach'
;
set
debug_sync
=
'now
signal close
wait_for xa_detach'
;
xa
rollback
'xuncommitted'
;
xa
rollback
'xuncommitted'
;
select
*
from
t
;
select
*
from
t
;
...
@@ -1882,13 +1882,13 @@ insert into t values (3);
...
@@ -1882,13 +1882,13 @@ insert into t values (3);
xa
end
'committed_later'
;
xa
end
'committed_later'
;
xa
prepare
'committed_later'
;
xa
prepare
'committed_later'
;
set
debug_sync
=
'now signal go'
;
set
debug_sync
=
'now signal go'
;
set
debug_sync
=
'
THD_cleanup_after_trans_cleanup signal xa_detach
'
;
set
debug_sync
=
'
thread_end signal xa_detach wait_for close
'
;
--
disconnect
con1
--
disconnect
con1
--
connection
default
--
connection
default
--
error
ER_LOCK_WAIT_TIMEOUT
--
error
ER_LOCK_WAIT_TIMEOUT
--
reap
# alter table
--
reap
# alter table
set
debug_sync
=
'now wait_for xa_detach'
;
set
debug_sync
=
'now
signal close
wait_for xa_detach'
;
xa
commit
'committed_later'
;
xa
commit
'committed_later'
;
...
@@ -1906,11 +1906,11 @@ insert into t values (4), (3);
...
@@ -1906,11 +1906,11 @@ insert into t values (4), (3);
insert
into
t
values
(
5
);
insert
into
t
values
(
5
);
xa
end
'x1'
;
xa
end
'x1'
;
xa
prepare
'x1'
;
xa
prepare
'x1'
;
set
debug_sync
=
'
THD_cleanup_after_trans_cleanup signal xa_detach
'
;
set
debug_sync
=
'
thread_end signal xa_detach wait_for close
'
;
--
disconnect
con1
--
disconnect
con1
--
connection
con2
--
connection
con2
set
debug_sync
=
'now wait_for xa_detach'
;
set
debug_sync
=
'now
signal close
wait_for xa_detach'
;
xa
commit
'x1'
;
xa
commit
'x1'
;
set
debug_sync
=
'now signal go'
;
set
debug_sync
=
'now signal go'
;
--
connection
default
--
connection
default
...
...
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