-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-10527. Rewrite key atomically #6385
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
sodonnel
merged 28 commits into
apache:HDDS-10656-atomic-key-overwrite
from
sodonnel:HDDS-10527
May 15, 2024
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5fe2ff7
Add existing update / object IDs to OmKeyArgs and OmKeyInfo
aa3bd32
modified createKeyRequest and commitKeyRequest with tests
9799ba5
Push objectid / updateid through various classes
5040d2b
Adapt client to be able to overwrite a key
6f45e67
Remove debugging log messages
0635134
Fix find bugs
c151122
Ensure test only runs for non FSO for now
908f9cd
Fix similar commit test on FSO
3c9c0e2
Rename overWrite to overwrite
17b5ff1
Overload constructors to avoid passing nulls for the new variables
0fe12c5
Avoid setting acl in overwrite request. Enhance test to ensure object…
ae4044c
Add overwrite object / update ID to the audit if they are present
7bb59e9
Minor review comments
8890ed8
Remove overwriteObjectID and base all logic on updateID only
a360d45
Block non ObjectStore buckets from using optimistic overwrite for now
3f3a49d
Validate existing ACLs are copied over from existing to overwrite key
736740a
Merge branch 'master' into HDDS-10527
525685c
Trigger rebuild
112e2e1
Rename overwriteUpdateID to overwriteGeneration
bcd1a28
Remove updateID references from client and replace with generation
4e6a97c
Change client API to rewriteKey
247620a
Fixed logic to not copy meta data from existing key, but take it from…
c6bc7e7
Merge branch 'master' into HDDS-10527
b91a051
Review comments
9dc6d31
Change BucketLayout.DEFAULT to getBucketLayout()
80e1802
Move getGeneration to OMKeyInfo
bb7b74f
Rename any instances of overwrite to rewrite
a87e092
Remove generation from OzoneKey
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
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.