-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
br: Compatibility problem between br and TiDB for DDLs about attribute in Incremental Backup #29360
Conversation
Signed-off-by: joccau <zak.zhao@pingcap.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/sig migrate |
/component br |
This solution will always skip the attributes even in 5.3 backup → 5.3 restore scenario. I don't think it is a good long-term solution (maybe not even good as a short-term solution). The ideal way is to copy what pingcap/parser#1287 has done. However, BR fetches the DDL query from the Lines 542 to 543 in fff946c
Line 1657 in fff946c
(will changing |
another alternative is we handle the parser error during restore, we build a white list and skip some errors in white list |
@kennytm I guess we can parse and the restore the query with (Or just do the procedure when we backing up?) |
we should fix it in v5.0.0 with the method of "skip some errors in white list when restore", and do nothing in v5.3.0. |
/unhold |
IMO either we claim that the 5.3 backup won't work on 5.0, or make the 5.3 output compatible with 5.0. Any solution requiring changing 5.0 is no good, why would the user upgrade the existing 5.0 cluster. |
/run-integration-br-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest lgtm
you might need a test case 🤔.
Signed-off-by: joccau <zak.zhao@pingcap.com>
/run-integration-br-test |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 91cbade
|
/cherrypick release-5.3 |
/label needs-cherry-pick-5.3 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.3 in PR #29493 |
What problem does this PR solve?
Because TiDB V5.3.0 support TableAttributes and TablePartitionAttributes.
Incremental Backup need skip these DDLs to be compatible with previous br versions.
Issue Number: close #29359
Problem Summary:
What is changed and how it works?
Check List
Tests
Test steps
All of above steps succeed
Release note