-
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
ddl : support ADMIN REPAIR TABLE to override bad tableInfo in meta & supply a REPAIR MODE for safely restart. #12046
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
650bb09
support admin repair table
AilinKid d402bdb
fix config test
AilinKid 3959828
fix comment
AilinKid 102b277
fix go.mod
AilinKid e23929b
add partition table repair
AilinKid 8e55c92
add partition table repair
AilinKid a1d5cc2
fix parition id and index id assignment
AilinKid 724c533
add comment
AilinKid f9bc798
address ming's comment
AilinKid 4c22243
fix go.sum
AilinKid 8e4a58b
fix go.sum
AilinKid b18e8ba
add column id reuse
AilinKid 2cd11a6
add column id reuse
AilinKid bb3a6aa
add create table name checkout
AilinKid da9402d
extract domainutil
AilinKid 6b8fdea
fix import
AilinKid 88c52cc
add test
AilinKid fe209b4
handle domain reload diff
AilinKid 6d05304
fix map data race
AilinKid 95e8432
fix repairlist datarace
AilinKid dccb2ed
add MODE check in reload diff
AilinKid 356e83f
change MODE from bool to atomic.value
AilinKid 1a61e92
address comment and add partition test
AilinKid f1aa1ca
add drop table if exists
AilinKid d0a57fe
add drop table if exists.
AilinKid b1607f0
fix comment
AilinKid 601b380
add hash partition
AilinKid 5545413
address comment
AilinKid 25fbc12
fix atomic value *struct copy write
AilinKid 2feb238
address comment
AilinKid 13503f0
fix autoIncID
AilinKid 8b5eeb8
fix the keyword new
AilinKid b41e009
eliminate confusion in build tableInfo with ddl=nil
AilinKid 8b912b4
eliminate the RepairedCallBack keyType
AilinKid ffc2bb8
extract checkAndOverridePartitionID in partition.go
AilinKid bc604c7
address comment
AilinKid 26f126f
address comment
AilinKid 92303d1
address config test
AilinKid 5bfbad3
fix data race
AilinKid f58baea
Merge branch 'master' into admin_repair_table
AilinKid 595874b
add cmd parameter
AilinKid 2365dbf
add rollback/cancel support
AilinKid 9de3312
Merge branch 'master' into admin_repair_table
AilinKid ccc4d34
Merge branch 'master' into admin_repair_table
AilinKid a03e642
address comment
AilinKid 1941108
Merge branch 'master' into admin_repair_table
AilinKid 86b202c
address comment
AilinKid d2e578d
Merge branch 'master' into admin_repair_table
AilinKid 00cd67a
Merge branch 'master' into admin_repair_table
AilinKid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
I think it’s better to bootstrap repair mode with CLI arguments instead of configuration.
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.
Addressed.
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.
Do we need this configuration if we have CLI parameters? @djshow832 @bb7133
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.
It's OK here. We can offer users with another choice.