Online DDL: enforce ALGORITHM=COPY on shadow table#12521
Merged
shlomi-noach merged 5 commits intovitessio:mainfrom Mar 2, 2023
Merged
Online DDL: enforce ALGORITHM=COPY on shadow table#12521shlomi-noach merged 5 commits intovitessio:mainfrom
shlomi-noach merged 5 commits intovitessio:mainfrom
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Collaborator
|
Is there a way to test this change in CI? Ideally a unit test.. |
rohit-nayak-ps
approved these changes
Feb 28, 2023
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Contributor
Author
|
Existing unit tests actually failed due to the change, and now adapted! |
Collaborator
|
We probably need to write a website FAQ / doc telling people how to work themselves out if they run into this situation. Not blocking this PR on that. |
deepthi
reviewed
Feb 28, 2023
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Contributor
Author
|
Per https://docs.percona.com/percona-xtrabackup/8.0/em/instant.html, the issue is resolved in Copy from said doc:
|
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
dbussink
approved these changes
Mar 2, 2023
This was referenced Feb 28, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Similarly to #12436, this PR uses explicit
ALGORITHM=COPYwhen altering Online DDL shadow tables. The shadow table is empty anyway, so there is no performance impact to usingCOPY. The advantage of usingCOPYis thatXtrabackup(at least on some versions?) has problems backing up tables created withINSTANTalgorithm.Related Issue(s)
Fixes #12517
Checklist
Deployment Notes