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
58f2c842
Commit
58f2c842
authored
Oct 02, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust tests for instant ADD COLUMN
parent
669c5150
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
mysql-test/suite/innodb/r/innodb-alter-debug.result
mysql-test/suite/innodb/r/innodb-alter-debug.result
+5
-5
mysql-test/suite/innodb/r/innodb-index-debug.result
mysql-test/suite/innodb/r/innodb-index-debug.result
+1
-1
mysql-test/suite/innodb/t/innodb-alter-debug.test
mysql-test/suite/innodb/t/innodb-alter-debug.test
+5
-7
mysql-test/suite/innodb/t/innodb-index-debug.test
mysql-test/suite/innodb/t/innodb-index-debug.test
+1
-1
No files found.
mysql-test/suite/innodb/r/innodb-alter-debug.result
View file @
58f2c842
...
...
@@ -29,11 +29,11 @@ DROP TABLE t1ć, ①;
# Bug #21364096 THE BOGUS DUPLICATE KEY ERROR IN ONLINE DDL
# WITH INCORRECT KEY NAME
create table t1 (id int auto_increment primary key, a int, unique key uk(a))
engine = innodb
row_format=redundant
;
engine = innodb;
insert into t1 select 1, 1;
insert into t1 select 2, 2;
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL s1 WAIT_FOR s2';
alter table t1 add b int, ALGORITHM=inplace;
alter table t1
force,
add b int, ALGORITHM=inplace;
/* connection con1 */
connect con1,localhost,root,,;
SET DEBUG_SYNC = 'now WAIT_FOR s1';
...
...
@@ -42,10 +42,10 @@ ERROR 23000: Duplicate entry '1' for key 'uk'
SET DEBUG_SYNC = 'now SIGNAL s2';
/* connection default */
connection default;
/* reap */ alter table t1 add b int, ALGORITHM=inplace;
/* reap */ alter table t1
force,
add b int, ALGORITHM=inplace;
ERROR 23000: Duplicate entry '1' for key 'uk'
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL s1 WAIT_FOR s2';
alter table t1 add b int, ALGORITHM=inplace;;
alter table t1
force,
add b int, ALGORITHM=inplace;;
/* connection con1 */
connection con1;
set DEBUG_SYNC = 'now WAIT_FOR s1';
...
...
@@ -55,7 +55,7 @@ SET DEBUG_SYNC = 'now SIGNAL s2';
disconnect con1;
/* connection default */
connection default;
/* reap */ alter table t1 add b int, ALGORITHM=inplace;
/* reap */ alter table t1
force,
add b int, ALGORITHM=inplace;
ERROR 23000: Duplicate entry '1' for key 'uk'
SET DEBUG_SYNC = 'RESET';
drop table t1;
mysql-test/suite/innodb/r/innodb-index-debug.result
View file @
58f2c842
...
...
@@ -83,7 +83,7 @@ create table t1(k1 int auto_increment primary key,
k2 char(200),k3 char(200))engine=innodb;
SET DEBUG_SYNC= 'row_merge_after_scan
SIGNAL opened WAIT_FOR flushed';
ALTER TABLE t1 ADD COLUMN k4 int;
ALTER TABLE t1
FORCE,
ADD COLUMN k4 int;
connection default;
SET DEBUG_SYNC= 'now WAIT_FOR opened';
SET debug = '+d,row_log_tmpfile_fail';
...
...
mysql-test/suite/innodb/t/innodb-alter-debug.test
View file @
58f2c842
...
...
@@ -35,14 +35,12 @@ DROP TABLE t1ć, ①;
--
echo
# Bug #21364096 THE BOGUS DUPLICATE KEY ERROR IN ONLINE DDL
--
echo
# WITH INCORRECT KEY NAME
# because of instant add, here we use redundant row format first,
# And change it when "ALGORITHM=instant" is introduced
create
table
t1
(
id
int
auto_increment
primary
key
,
a
int
,
unique
key
uk
(
a
))
engine
=
innodb
row_format
=
redundant
;
engine
=
innodb
;
insert
into
t1
select
1
,
1
;
insert
into
t1
select
2
,
2
;
SET
DEBUG_SYNC
=
'row_log_table_apply1_before SIGNAL s1 WAIT_FOR s2'
;
--
send
alter
table
t1
add
b
int
,
ALGORITHM
=
inplace
--
send
alter
table
t1
force
,
add
b
int
,
ALGORITHM
=
inplace
--
echo
/* connection con1 */
connect
(
con1
,
localhost
,
root
,,);
...
...
@@ -53,12 +51,12 @@ SET DEBUG_SYNC = 'now SIGNAL s2';
--
echo
/* connection default */
connection
default
;
--
echo
/* reap */
alter
table
t1
add
b
int
,
ALGORITHM
=
inplace
;
--
echo
/* reap */
alter
table
t1
force
,
add
b
int
,
ALGORITHM
=
inplace
;
--
error
ER_DUP_ENTRY
--
reap
SET
DEBUG_SYNC
=
'row_log_table_apply1_before SIGNAL s1 WAIT_FOR s2'
;
--
send
alter
table
t1
add
b
int
,
ALGORITHM
=
inplace
;
--
send
alter
table
t1
force
,
add
b
int
,
ALGORITHM
=
inplace
;
--
echo
/* connection con1 */
connection
con1
;
...
...
@@ -70,7 +68,7 @@ disconnect con1;
--
echo
/* connection default */
connection
default
;
--
echo
/* reap */
alter
table
t1
add
b
int
,
ALGORITHM
=
inplace
;
--
echo
/* reap */
alter
table
t1
force
,
add
b
int
,
ALGORITHM
=
inplace
;
--
error
ER_DUP_ENTRY
--
reap
SET
DEBUG_SYNC
=
'RESET'
;
...
...
mysql-test/suite/innodb/t/innodb-index-debug.test
View file @
58f2c842
...
...
@@ -96,7 +96,7 @@ create table t1(k1 int auto_increment primary key,
k2
char
(
200
),
k3
char
(
200
))
engine
=
innodb
;
SET
DEBUG_SYNC
=
'row_merge_after_scan
SIGNAL opened WAIT_FOR flushed'
;
send
ALTER
TABLE
t1
ADD
COLUMN
k4
int
;
send
ALTER
TABLE
t1
FORCE
,
ADD
COLUMN
k4
int
;
connection
default
;
SET
DEBUG_SYNC
=
'now WAIT_FOR opened'
;
SET
debug
=
'+d,row_log_tmpfile_fail'
;
...
...
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