Tablespaces(.ibd) renamed between schemas may not copied

Description

Xtrabackup version affected:

  • 2.4.29

  • 8.0.35

 

Problem:

If --lock-ddl is disabled which is default,

before load tablespace and open ibds operations from schema 1,

rename tables from schema 1 to schema 2, and rename tables back from schema 2 to schema 1 before load from schema 2,

backup are not inconsistent because some .ibds are not copied.

Environment

None

Activity

Show:

Satya Bodapati June 6, 2024 at 9:59 AM

With lock-ddl=OFF, it is the user's responsibility to avoid DDLs. This is why we recommend lock-ddl=ON and default is ON.

We have plans to reduce the total lock duration. Stay tuned!

PerconaSQL May 13, 2024 at 6:28 AM

How to repeat:

  1. Create 2 databases, and create tables in one database;

  2. Begin backup, rename tables from this database to other, and rename tables back;

  3. Prepare backup, and check if some .ibd files are not copied.

Won't Do

Details

Assignee

Reporter

Needs QA

Yes

Components

Affects versions

Priority

Smart Checklist

Created May 13, 2024 at 3:27 AM
Updated June 6, 2024 at 10:00 AM
Resolved June 6, 2024 at 10:00 AM