-
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
Restore: implement restorer for compacted SST/Snapshot/log files #57208
Merged
Merged
Changes from 27 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
1783421
restore: implement restorer for compacted SST/Snapshot/log files
3pointer d449c73
resolve conflicts
3pointer 5fab677
Merge branch 'master' into feat/compacted_logs_2nd
3pointer 73959f4
refine code after merge master
3pointer c6d643a
add test cases
3pointer 3674e0e
rename some names && more test cases
3pointer 7ef0f7d
remove useless code
3pointer 23a5d18
fix build
3pointer 0ec3cb2
polish code
3pointer c775e12
add NewSnapFileImporterOptions
3pointer 329bf69
add tryMap for br iter
3pointer 4dcd764
fix bazel
3pointer ed5d95e
fix integration tests
3pointer 57d15db
address comments
3pointer 57191e0
address comments
3pointer fbb71a9
fix test
3pointer 3c0f79e
fix integration test
3pointer 886b8f9
fix br_txn
3pointer 0784b43
fix br_raw
3pointer a565ed0
refine code
3pointer b715725
rename some functions
3pointer f05b60e
fix reset limit
3pointer 5e2eac4
update case
3pointer fafb0d2
update cases
3pointer d182593
Merge branch 'master' into feat/compacted_logs_2nd
3pointer 1f1b636
fix the test after merge master
3pointer b9651ed
fix cases
3pointer c406c7a
fix ut
3pointer 5346932
fix ut after filterout moving forward
3pointer b7bda58
resolve conflicts
3pointer fed41b5
address comment
3pointer 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
Oops, something went wrong.
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.
You should save and call the returned function or nothing will happen...
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.
This is a strange behavior exists a long time. in stream restore
RestorePreWork
will skip the switch tikv mode, but inRestorePostWork
it will switch back to normal. so this sync.OnceFunc make us don't close channel twice.I can change this behavior in next PR. I think that will be more clear.
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.
Well, but for now, this line of code is actually a nop... We will close the channel exactly zero times.