-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
rgw: revert PR #41897 to allow multiple delete markers to be created #54957
base: main
Are you sure you want to change the base?
Conversation
thanks for testing the fix @jzhu116-bloomberg what is your observation while deleting delete markers via lc?
see https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-expire-general-considerations.html so, while we allow DeleteObject request to create more than one delete markers (this PR takes care of that), we should also ensure lifecycle expiration to behave as described above w.r.t to deleting delete markers. we could discuss this further in our weekly meeting. |
According to my tests, when the lc is deleting delete-markers, it never creates another delete-marker. However it doesn't exactly follow what the aws doc says either. Here is my observation:
The above works as it's described in the doc.
For the above, we have 2 issues:
This doesn't happen in my testing. The expired delete-marker is NOT being cleaned-up. Please note. this has nothing to do with this PR since it's reproducible in a main branch without this PR. My question: should we create an issue tracker and fix this?
My question: I guess we can treat this as a minor issue? Should we fix this? |
An issue tracker has been opened for this issue: https://tracker.ceph.com/issues/63995
An issue tracker has been opened for this: https://tracker.ceph.com/issues/63997 |
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
Hi @smanjara , I wonder how we want to go ahead with this? As far as I understood, we are waiting for some test cases to be created right? |
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
@smanjara Hi, there. Sorry to bug you, I'm wondering if we can move this forward. Are we needing a specific s3test to be written as part of the usual gamut for this to merge in? |
hi @adamemerson currently there is no test coverage in multisite suite for delete markers. I think that is what is missing here. |
@smanjara I remember you mentioned that you would add something for this when you would be fixing some multisite tests issues? I wonder how is that going along? Do you want me to take on adding multisite test cases for delete markers? |
hi @jzhu116-bloomberg I haven't had a chance to do it. I know that you have mentioned that it all works well for you with the changes in this PR. it would be really helpful if you could add the test cases. thanks! |
Sounds good! then I'll add some test cases for this. |
do we have s3tests coverage for the lifecycle behavior? its generation of stacking delete markers is what motivated the original change. if we revert, we really need to prove that part was fixed |
This is the s3tests coverage for the lifecycle issue: ceph/s3-tests#286. |
thanks for following up! for the lifecycle testing, we'll need to make sure that lifecycle processing has a chance to run multiple times in order to verify that it doesn't stack the delete markers. we'll also want a non-lifecycle test case to verify that multiple delete_object() calls do stack the delete markers |
Signed-off-by: Juan Zhu <[email protected]>
Signed-off-by: Jane Zhu <[email protected]>
9196f1e
to
3b9ba90
Compare
Test cases:
|
Please see the following links for more discussion and info:
https://tracker.ceph.com/issues/63799
https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingDelMarkers.html
The PR has been (partially) reverted: #41897
Tests have been done on the following operations/processes that involve delete markers, and all work well.
Fixes: https://tracker.ceph.com/issues/63799
Signed-off-by: Jane Zhu [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
x
between the brackets:[x]
. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox
jenkins test windows
jenkins test rook e2e