Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
In MySQL 5.7 (and MariaDB 10.2.2 onwards), the InnoDB redo log is not self-contained with respect to some DDL operations.
Most notably, WL#7277 disables the redo logging of data pages in the initial phase of ALTER TABLE…ALGORITHM=INPLACE. (The online_log apply is still being redo-logged.) The presence of a MLOG_INDEX_LOAD record indicates that some data was omitted from the redo log.
Percona implements a workaround. We should look at their implementation.
MDEV-13564 mentions another class of operations that makes the redo log not self-contained: TRUNCATE TABLE and undo tablespace truncation.
Attachments
Issue Links
- causes
-
MDEV-13802 mariabackup --lock-ddl-per-table fails when table names contain backticks
-
- Closed
-
-
MDEV-13825 mariabackup --lock-ddl-per-table does not properly lock FULLTEXT auxiliary tables
-
- Closed
-
- relates to
-
MDEV-13564 TRUNCATE TABLE and undo tablespace truncation are not compatible with Mariabackup
-
- Closed
-
-
MDEV-16809 Allow full redo logging for ALTER TABLE
-
- Closed
-
-
MDEV-14545 Backup fails due to MLOG_INDEX_LOAD record
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue relates to |
Description | in 10.2, DDL commands are not written to the innodb redo log. Percona implements a workaround with https://blueprints.launchpad.net/percona-xtrabackup/+spec/mdl-lock-tables. We should look at their implementation |
In MySQL 5.7 (and MariaDB 10.2.2 onwards), the InnoDB redo log is not self-contained with respect to some DDL operations.
Most notably, [WL#7277|http://dev.mysql.com/worklog/task/?id=7277] disables the redo logging of data pages in the initial phase of ALTER TABLE…ALGORITHM=INPLACE. (The online_log apply is still being redo-logged.) The presence of a [MLOG_INDEX_LOAD record|https://github.com/mysql/mysql-server/commit/c8b6a6b4e0574910822945be1b041407a822f2c1] indicates that some data was omitted from the redo log. Percona implements [a workaround|https://blueprints.launchpad.net/percona-xtrabackup/+spec/mdl-lock-tables]. We should look at their implementation. |
Fix Version/s | 10.2 [ 14601 ] |
Assignee | Vladislav Vaintroub [ wlad ] |
Fix Version/s | 10.2.9 [ 22611 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Link |
This issue causes |
Link |
This issue causes |
Link |
This issue relates to |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 82146 ] | MariaDB v4 [ 133330 ] |