-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19536. S3A : Add option for custom S3 tags while writing and deleting S3 objects #7834
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
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.
great start! renamed the PR title so it matches the overall work.
Can you actually use a different branch name than trunk, ideally something with the JIRA in it. This is because github pr to check out a PR uses the branch name, and we all already hava a branch trunk.
Commented on soft-delete. it gets complicated fast in terms of trying to maintain fs metaphor (or even preventing object overwrite, probes for existence etc).
|
|
||
| ### Soft Delete Tags | ||
| ```properties | ||
| fs.s3a.soft.delete.enabled=true |
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.
is the idea that when enabled, each delete(path) call is remapped to tagging the object for deletion?
is this for recovery or for a performance benefit?
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.
- Yes the object will be tagged according to the tag given by the user or some default tag for deletion.
- It is for recovery. Users can archive some s3 objects on the basis of tags and recover that in future when they need.
|
|
||
| ## Soft Delete Feature | ||
|
|
||
| The soft delete feature allows you to tag objects instead of permanently deleting them, enabling data retention policies and recovery options. |
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.
or people use versioned buckets, obviously
| -rm s3a://my-bucket/file-to-archive.txt | ||
| ``` | ||
|
|
||
| ### Future Capabilities (Planned) |
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.
don't make these commitments as they get complex fast. e.g
- what if a path has nothing but soft deleted files underneath. Does it exist? can I do a non-recursive rm of a directory with nothing but soft delete entries underneath? we'd reject now as a LIST call would say stuff is there, and we don't do a HEAD on each file looking for a soft-delete marker.
- what if I rename a soft-deleted file? does it come back into existence?
- what if I create a file, the header is set to not create if a file is there, but there's a soft deleted entry?
Better to say
While tagged as soft delete, the files are still visible to filesystem operations
such as list and create.
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.
Got it, I will remove this section/rename this accordingly.
|
@ayush1300 why did you close this? |
|
🎊 +1 overall
This message was automatically generated. |
|
oh yes, I remember. I even asked for it. thanks |
Description of PR
How was this patch tested?
For code changes: