-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-13009. Background snapshot defrag service #9227
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
Closed
smengcl
wants to merge
26
commits into
apache:master
from
smengcl:HDDS-13009-defrag-service-rebase-v2
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e6c6b02
HDDS-13009. Background snapshot defrag service
smengcl 29379ea
Patch needsDefrag flag from HDDS-13785. The flag wasn't correctly set.
smengcl 8dc2e5d
Update snapshot local metadata after defrag
smengcl d52c774
Change full defrag impl: create checkpoint then delete, rather than c…
smengcl 6a46b7a
HDDS-13860. RocksDatabase#open leaks column family handles when faili…
smengcl 648aa7e
Use OmMetadataManagerImpl to open defragged DB; snapshotLocalData.set…
smengcl cf74dfc
Use getDeltaFiles() for incremental defrag. https://github.com/apache…
smengcl 01f38f2
Move const; findbugs; address copilot comments
smengcl b5de4e3
pmd
smengcl 62fd5f4
Add version suffix to defragged DB dirs; cleanup
smengcl 0c2f696
delete old DB; fix append version suffix to defrag DB dir names
smengcl aaaf0c0
Merge remote-tracking branch 'asf' into HDDS-13009-defrag-service-reb…
smengcl 4fba9fa
improve error handling
smengcl 6dd3876
Use FileUtils.deleteDirectory for cleanup
smengcl c07898f
logging
smengcl b12d41c
throw when failing to ingest SST file
smengcl 108f35d
fix previous defragmented DB existence check
smengcl aa90ce8
add debug logging in OmMetadataManagerImpl
smengcl 2dc5309
add debug logging in SnapshotCache#invalidate
smengcl 553acdb
throw exception when previous snapshot is not defragged in incrementa…
smengcl 24fbb1c
fix checkpoint debug logging
smengcl 1689158
Invalidate snapshot cache before deleting old DB
smengcl edc1eb6
Update log message order in OmMetadataManagerImpl
smengcl dae1162
Update snapshot defrag test configuration and assertions
smengcl 1766882
cleanup
smengcl 76d5bc8
An attempt to fix test error
smengcl 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Creating the defraggedSnapshotsParentDir directory unconditionally may not be desired in all environments. As the TODO indicates, this should be behind a feature flag or configuration option to allow administrators to disable defragmentation if needed.