-
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: fix tiflash confilct #53658
br: fix tiflash confilct #53658
Conversation
Skipping CI for Draft Pull Request. |
Hi @RidRisR. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53658 +/- ##
=================================================
- Coverage 72.4222% 57.4860% -14.9362%
=================================================
Files 1505 1628 +123
Lines 430553 617694 +187141
=================================================
+ Hits 311816 355088 +43272
- Misses 99427 239095 +139668
- Partials 19310 23511 +4201
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/test pull-br-integration-test |
@RidRisR: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test pull-br-integration-test |
@RidRisR: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test pull-br-integration-test |
@RidRisR: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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
@@ -0,0 +1,35 @@ | |||
-- Switch to the test database |
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.
Also you may add license header in each file.
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.
Seems that most .sql don't have a license header?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Leavrth, YuJuncen The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
for _, table := range info.SchemaTables(schema) { | ||
tableInfo := table.Meta() | ||
if tableInfo.TiFlashReplica != nil && tableInfo.TiFlashReplica.Count > 0 { | ||
return nil, errors.Errorf("exist table(s) have tiflash replica, please remove it before restore") |
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.
Can we give a more explicit reason which table(s) has tiflash replica in the error message?
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.
We could, but it may make the error message too long to read
What problem does this PR solve?
Issue Number: close #52628
Problem Summary:
Run PITR for multiple times could lead to tiflash crash
What changed and how does it work?
Added a new check to prevent pitr if there is tiflash replica on table in pitr range
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.