-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-13780. Skeleton of background snapshot defrag service #9133
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
Merged
smengcl
merged 34 commits into
apache:master
from
smengcl:HDDS-13780-skeleton-defrag-service
Oct 14, 2025
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
8423ac7
HDDS-13009. Background snapshot defrag service
smengcl 838cd43
Make `RDBSstFileWriter` public to be used in defrag service.
smengcl 61b9ffc
Implement `delete(key)` in `RDBSstFileWriter`.
smengcl 73625a8
Add config `ozone.snapshot.defrag.service.timeout`, `ozone.snapshot.d…
smengcl f442502
Add comments/TODOs for defrag service interval/timeout
smengcl 8e37e5d
Implement SnapshotDefragService
smengcl 08cde3d
Make it compile
smengcl 2cd2cbf
Checkstyle
smengcl 6a8adb5
Add a test case for debugging
smengcl 0a131dd
Handle yaml previousSnapshotId null
smengcl 668799d
Use snapshot chain iterator in findFirstSnapshotNeedingDefrag
smengcl 93db705
Merge remote-tracking branch 'asf' into HDDS-13009-defrag-service
smengcl 135100e
Handle yaml snapId null so that it won't cause NPE. Null check should…
smengcl f5fd06a
Remove findPreviousDefraggedSnapshot
smengcl e970a3d
Remove TODO that is not applicable
smengcl c3de774
Add new configs to ozone-default.xml
smengcl 92256eb
Clean up test case
smengcl 9d57b89
Logging and TODO cleanups.
smengcl 4a3e01a
Remove POC defrag logic and test case, keeping the skeleton
smengcl a17a5b6
Address applicable comments from copilot
smengcl 2d29d7f
Revert the change that makes RDBSstFileWriter and RocksDatabase public.
smengcl c11eda5
Empty performFullDefragmentation and performIncrementalDefragmentatio…
smengcl d6a07c4
Remove unused fields
smengcl 66d6378
Override
smengcl 5f1c393
Checkstyle
smengcl 9d5166a
Config
smengcl 1c71318
Revert the revert that makes RDBSstFileWriter public.
smengcl d6d7c6a
Refactor. context: https://github.com/apache/ozone/pull/9133#discussi…
smengcl 808f0bb
getSnapshot(snapshotTableKey, false); remove updateSnapshotMetadata
smengcl 02f18ce
Use MultiSnapshotLocks.
smengcl 2a51f60
Use `getSnapshot(UUID)`; pmd
smengcl eee47f3
Revert package-private
smengcl 48c47e4
Merge remote-tracking branch 'asf' into HDDS-13780-skeleton-defrag-se…
smengcl f8e3077
Use new API `getOmSnapshotLocalData(SnapshotInfo)` that comes with th…
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
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.
Uh oh!
There was an error while loading. Please reload this page.