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
19d21b93
Commit
19d21b93
authored
Sep 25, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cherry-pick the MDEV-13898 test changes from 10.2 to 10.0
parent
78b63425
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
mysql-test/suite/innodb/r/innodb-table-online.result
mysql-test/suite/innodb/r/innodb-table-online.result
+7
-1
mysql-test/suite/innodb/t/innodb-table-online.test
mysql-test/suite/innodb/t/innodb-table-online.test
+7
-1
No files found.
mysql-test/suite/innodb/r/innodb-table-online.result
View file @
19d21b93
...
...
@@ -143,7 +143,8 @@ ROLLBACK;
# session con1
KILL QUERY @id;
ERROR 70100: Query execution was interrupted
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR kill_done';
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR dml_done';
SET DEBUG_SYNC = 'row_log_table_apply2_before SIGNAL applied WAIT_FOR kill_done';
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
# session default
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt';
...
...
@@ -153,6 +154,10 @@ ddl_background_drop_indexes 0
ddl_background_drop_tables 0
ddl_online_create_index 1
ddl_pending_alter_table 1
BEGIN;
INSERT INTO t1 VALUES(7,4,2);
ROLLBACK;
SET DEBUG_SYNC = 'now SIGNAL dml_done WAIT_FOR applied';
KILL QUERY @id;
SET DEBUG_SYNC = 'now SIGNAL kill_done';
# session con1
...
...
@@ -186,6 +191,7 @@ t1 CREATE TABLE `t1` (
`c3` text NOT NULL,
PRIMARY KEY (`c1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt2 WAIT_FOR dml2_done';
SET lock_wait_timeout = 10;
ALTER TABLE t1 ROW_FORMAT=COMPACT, ALGORITHM = INPLACE;
...
...
mysql-test/suite/innodb/t/innodb-table-online.test
View file @
19d21b93
...
...
@@ -157,7 +157,8 @@ let $ID= `SELECT @id := CONNECTION_ID()`;
--
error
ER_QUERY_INTERRUPTED
KILL
QUERY
@
id
;
SET
DEBUG_SYNC
=
'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR kill_done'
;
SET
DEBUG_SYNC
=
'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR dml_done'
;
SET
DEBUG_SYNC
=
'row_log_table_apply2_before SIGNAL applied WAIT_FOR kill_done'
;
--
send
ALTER
TABLE
t1
ROW_FORMAT
=
REDUNDANT
;
...
...
@@ -165,6 +166,10 @@ ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
connection
default
;
SET
DEBUG_SYNC
=
'now WAIT_FOR rebuilt'
;
eval
$innodb_metrics_select
;
BEGIN
;
INSERT
INTO
t1
VALUES
(
7
,
4
,
2
);
ROLLBACK
;
SET
DEBUG_SYNC
=
'now SIGNAL dml_done WAIT_FOR applied'
;
let
$ignore
=
`SELECT @id := $ID`
;
KILL
QUERY
@
id
;
SET
DEBUG_SYNC
=
'now SIGNAL kill_done'
;
...
...
@@ -190,6 +195,7 @@ ANALYZE TABLE t1;
--
echo
# session con1
connection
con1
;
SHOW
CREATE
TABLE
t1
;
ALTER
TABLE
t1
ROW_FORMAT
=
REDUNDANT
;
# Exceed the configured innodb_online_alter_log_max_size.
# The actual limit is a multiple of innodb_sort_buf_size,
...
...
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