Skip to content

PXB-3818: Fix reduced-lock DDL handling#1763

Open
Jing118 wants to merge 6 commits into
percona:8.4from
Jing118:fix_reduced_ddl
Open

PXB-3818: Fix reduced-lock DDL handling#1763
Jing118 wants to merge 6 commits into
percona:8.4from
Jing118:fix_reduced_ddl

Conversation

@Jing118

@Jing118 Jing118 commented Jun 12, 2026

Copy link
Copy Markdown

This PR fixes several edge cases in --lock-ddl=REDUCED DDL tracking and prepare handling.

The affected cases are mostly around tablespaces that are renamed, recopied, deleted, or found corrupted during the backup window. Some of these cases could previously make backup or prepare fail, or produce a successful-looking backup that later misses a tablespace.

Related PXB issues:

https://perconadev.atlassian.net/browse/PXB-3808
https://perconadev.atlassian.net/browse/PXB-3809
https://perconadev.atlassian.net/browse/PXB-3810
https://perconadev.atlassian.net/browse/PXB-3813
https://perconadev.atlassian.net/browse/PXB-3812
https://perconadev.atlassian.net/browse/PXB-3816

Main fixes:

  1. Use two-pass .ren handling during prepare
  2. Still handle incremental .delta/.meta when .ibd rename is a no-op
  3. Create destination schema directories for cross-database rename
  4. Preserve .del handling for recopy followed by drop
  5. Prevent silent data loss for corrupted tablespaces
  6. Fix incremental recopy + rename handling

@satya-bodapati Could you please take a close look at these changes and let me know if you have any suggestions?

@it-percona-cla

it-percona-cla commented Jun 12, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@satya-bodapati

Copy link
Copy Markdown
Contributor

@Jing118 awesome, thanks for your contributions. I will check next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants