[MDEV-17567] Atomic DDL Created: 2018-10-30 Updated: 2023-01-07 Resolved: 2021-05-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Data Definition - Create Table |
| Fix Version/s: | 10.6.1 |
| Type: | Task | Priority: | Critical |
| Reporter: | Michael Widenius | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 8 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
The purpose of this task is to ensure that the following internal operations Manage .frm This will solve the following things:
The cost of doing the above should not be more than 1-4 sync per DDL. High level architecture When doing a DDL, store somewhere (either trough write_ddl_log_entry() or
If there is no table id (for example for CSV) we would use the With the above information we would be able to continue from the place Low level architecture is done for each sub project Some requirements for a storage engine to be 'Atomic compliment':
Supported engines in 10.6 are (among others)
|
| Comments |
| Comment by Marko Mäkelä [ 2020-09-16 ] | ||||||||||||||||||||||
|
I hope that this will address the failure scenario of | ||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-01-14 ] | ||||||||||||||||||||||
|
I do not think that DDL operations in InnoDB can be truly crash-safe before | ||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-01-14 ] | ||||||||||||||||||||||
|
As noted in | ||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-05-06 ] | ||||||||||||||||||||||
|
It seems that we are currently missing the recovery step for the embedded server library. | ||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-05-06 ] | ||||||||||||||||||||||
|
As noted in
There is no point to issue such messages when the DDL log recovery is in progress:
|