-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: gc for zombie piece & metaTask & bucket migration #1190
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
eb1d260
feat: gc for bucket migration & gc for ZombiePiece & meta
jingjunLi 2bf4a7b
feat: refactor gc zombie & gc meta & gc bucket migration
jingjunLi acfe31b
feat: modified some code based on review feedback
jingjunLi 21cbc3f
feat: add GetLatestObjectID api for metadata and some unit tests
jingjunLi 07226ce
feat: add ReadRecordDeleteLimit config and refine logs
jingjunLi efd48e3
feat: bucket migration gc delete integrity
jingjunLi 441be22
feat: fix some comment
jingjunLi cc641cc
feat: fix unit test
jingjunLi 924231f
feat: fix ListIntegrityMetaByObjectIDRange API
jingjunLi d0c1442
feat: fix ListIntegrityMetaByObjectIDRange API
jingjunLi 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
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.
Why change this? Please check coretask.TypeTaskGCObject:coretask.UnSchedulingPriority.
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.
During testing, encountered a crash in PickUpTask when all tasks have a priority of 0.
![image](https://private-user-images.githubusercontent.com/11239387/284298189-77c02a36-c2a3-4a87-b1ff-cf2cdfb21d02.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDk5NDksIm5iZiI6MTczOTQwOTY0OSwicGF0aCI6Ii8xMTIzOTM4Ny8yODQyOTgxODktNzdjMDJhMzYtYzJhMy00YTg3LWIxZmYtY2YyY2RmYjIxZDAyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDAxMjA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzMzdhYzk1YmE1OGUwMGRiMzUwZTM2MGYzZDcwYTdjM2MxYWYzODFiNzUxZDRkY2FkNmE3NTJhZGM5NWMzNWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jXsdOh6TnJcvN8XrFizJpgrN1r0CK9Ec73lvsIIS8-4)
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.
UnSchedulingPriority indicates tasks that don't need background scheduling. Currently, the priority for all GC-related tasks is uniformly set to coretask.DefaultSmallerPriority / 4.