-
Notifications
You must be signed in to change notification settings - Fork 6k
br: repair the index that any foreign key is needed in #62418
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
Conversation
Signed-off-by: Jianjun Liao <[email protected]>
Hi @Leavrth. 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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #62418 +/- ##
================================================
+ Coverage 72.7835% 74.6372% +1.8537%
================================================
Files 1831 1848 +17
Lines 495392 497029 +1637
================================================
+ Hits 360564 370969 +10405
+ Misses 112905 103465 -9440
- Partials 21923 22595 +672
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Signed-off-by: Jianjun Liao <[email protected]>
/check-issue-triage-complete |
Signed-off-by: Jianjun Liao <[email protected]>
Signed-off-by: Jianjun Liao <[email protected]>
Signed-off-by: Jianjun Liao <[email protected]>
Signed-off-by: Jianjun Liao <[email protected]>
Signed-off-by: Jianjun Liao <[email protected]>
Signed-off-by: Jianjun Liao <[email protected]>
/retest |
@Leavrth: 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. |
} | ||
fkSqls[i].OldForeignKeyFound = false | ||
fkSqls[i].ForeignKeyUpdated = false | ||
if fromCheckpoint { |
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.
just curious, fromCheckpoint
means rerun log restore task?
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.
Yes, the last execution may failed after the foreign key is dropped and before the foreign key is recreated.
type ForeignKeyRecord struct { | ||
ID int64 | ||
ChildSchemaNameO string | ||
ChildTableNameO string | ||
ParentSchemaNameO string | ||
ParentTableNameO string | ||
FKNameO string | ||
ChildCols []ast.CIStr | ||
ParentCols []ast.CIStr | ||
OnDelete int | ||
OnUpdate int | ||
} |
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.
prefer add comment to make sure the fields is consistent with model.FKInfo
or use model.FKInfo
directly?🤔
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.
done
Signed-off-by: Jianjun Liao <[email protected]>
/retest |
@Leavrth: 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
@River2000i: adding LGTM is restricted to approvers and reviewers in OWNERS files. 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. |
/hold pending comments from river2000i |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BornChanger, River2000i, Tristan1900 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 |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: Jianjun Liao <[email protected]>
/unhold |
/ok-to-test |
Signed-off-by: Jianjun Liao <[email protected]>
/retest |
@Leavrth: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/retest |
@Leavrth: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #61642
Problem Summary:
repair index should drop the index at first, but there is a foreign key is needed in it to prevent it from being dropped.
What changed and how does it work?
drop foreign keys before repair indexes, and finally add back them
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.