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
5669cb73
Commit
5669cb73
authored
Mar 05, 2024
by
Nikita Malyavin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix race in the MDEV-32614 test
Sometimes 'continue' signal could be missed.
parent
c436b6a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
mysql-test/main/alter_table_online_debug.result
mysql-test/main/alter_table_online_debug.result
+4
-6
mysql-test/main/alter_table_online_debug.test
mysql-test/main/alter_table_online_debug.test
+6
-9
No files found.
mysql-test/main/alter_table_online_debug.result
View file @
5669cb73
...
...
@@ -1813,20 +1813,18 @@ insert into t select seq, seq from seq_1_to_5;
backup stage start;
connect con_lock,localhost,root,,;
set lock_wait_timeout= 1;
set debug_sync='copy_data_between_tables_before_reset_backup_lock wait_for continue';
set debug_sync='copy_data_between_tables_before_reset_backup_lock
signal backup
wait_for continue';
alter table t add index (b), algorithm=copy, lock=none;
connection default;
set debug_sync='now wait_for backup';
backup stage block_commit;
set debug_sync='now signal continue';
connection con_lock;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
set debug_sync='copy_data_between_tables_before_reset_backup_lock wait_for continue';
alter table t add index (a), algorithm=copy, lock=none;
disconnect con_lock;
connection default;
backup stage end;
set debug_sync='now signal continue';
connection con_lock;
disconnect con_lock;
alter table t add index (a), algorithm=copy, lock=none;
connection default;
drop table t;
set global default_storage_engine= MyISAM;
...
...
mysql-test/main/alter_table_online_debug.test
View file @
5669cb73
...
...
@@ -2074,10 +2074,13 @@ backup stage start;
--
connect
(
con_lock
,
localhost
,
root
,,)
set
lock_wait_timeout
=
1
;
set
debug_sync
=
'copy_data_between_tables_before_reset_backup_lock wait_for continue'
;
set
debug_sync
=
'copy_data_between_tables_before_reset_backup_lock
signal backup
wait_for continue'
;
send
alter
table
t
add
index
(
b
),
algorithm
=
copy
,
lock
=
none
;
--
connection
default
set
debug_sync
=
'now wait_for backup'
;
backup
stage
block_commit
;
set
debug_sync
=
'now signal continue'
;
...
...
@@ -2085,18 +2088,12 @@ set debug_sync='now signal continue';
--
connection
con_lock
--
error
ER_LOCK_WAIT_TIMEOUT
--
reap
# --echo # error $mysql_errno
set
debug_sync
=
'copy_data_between_tables_before_reset_backup_lock wait_for continue'
;
send
alter
table
t
add
index
(
a
),
algorithm
=
copy
,
lock
=
none
;
--
disconnect
con_lock
--
connection
default
backup
stage
end
;
set
debug_sync
=
'now signal continue'
;
alter
table
t
add
index
(
a
),
algorithm
=
copy
,
lock
=
none
;
--
connection
con_lock
--
reap
--
disconnect
con_lock
--
connection
default
drop
table
t
;
...
...
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