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
5361b870
Commit
5361b870
authored
Apr 04, 2023
by
Nikita Malyavin
Committed by
Sergei Golubchik
Aug 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add partition test
parent
5f206259
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
mysql-test/main/alter_table_online_debug.result
mysql-test/main/alter_table_online_debug.result
+21
-0
mysql-test/main/alter_table_online_debug.test
mysql-test/main/alter_table_online_debug.test
+22
-1
No files found.
mysql-test/main/alter_table_online_debug.result
View file @
5361b870
...
...
@@ -1210,6 +1210,27 @@ set debug_sync= 'now signal goon';
connection default;
drop table t;
drop function f;
# Partitioning
create or replace table t1 (a serial);
insert t1 values (5), (6), (7);
set debug_sync= 'alter_table_online_downgraded SIGNAL downgraded wait_for goon';
alter table t1 ENGINE=InnoDB, ALGORITHM=COPY, LOCK=NONE
PARTITION BY HASH(a) PARTITIONS 5;
connection con1;
set debug_sync= 'now WAIT_FOR downgraded';
insert into t1 values (123), (456), (789);
update t1 set a= a+100;
set debug_sync= 'now SIGNAL goon';
connection default;
select * from t1;
a
105
106
556
107
223
889
drop table t1;
disconnect con1;
#
# End of 11.2 tests
...
...
mysql-test/main/alter_table_online_debug.test
View file @
5361b870
...
...
@@ -2,6 +2,7 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
binlog_combinations
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_partition
.
inc
set
default_storage_engine
=
innodb
;
--
connect
(
con2
,
localhost
,
root
,,)
...
...
@@ -1396,8 +1397,28 @@ set debug_sync= 'now signal goon';
--
reap
drop
table
t
;
drop
function
f
;
--
disconnect
con1
--
echo
# Partitioning
create
or
replace
table
t1
(
a
serial
);
insert
t1
values
(
5
),
(
6
),
(
7
);
set
debug_sync
=
'alter_table_online_downgraded SIGNAL downgraded wait_for goon'
;
send
alter
table
t1
ENGINE
=
InnoDB
,
ALGORITHM
=
COPY
,
LOCK
=
NONE
PARTITION
BY
HASH
(
a
)
PARTITIONS
5
;
--
connection
con1
set
debug_sync
=
'now WAIT_FOR downgraded'
;
insert
into
t1
values
(
123
),
(
456
),
(
789
);
update
t1
set
a
=
a
+
100
;
set
debug_sync
=
'now SIGNAL goon'
;
--
connection
default
--
reap
select
*
from
t1
;
drop
table
t1
;
--
disconnect
con1
--
echo
#
--
echo
# End of 11.2 tests
--
echo
#
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