Project

General

Profile

Actions

Feature #54476

open

rgw: allow S3 delete-marker behavior to be restored via config

Added by J. Eric Ivancich about 2 years ago. Updated about 2 years ago.

Status:
Fix Under Review
Priority:
Normal
Target version:
% Done:

0%

Source:
Tags:
Backport:
quincy,pacific,octopus
Reviewed:
Affected Versions:
Pull request ID:

Description

According to Amazon's S3 documentation on versioned buckets, when the most recent version of an object is a delete-marker, a delete operation should add another delete-marker and make it the latest version. See: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingDelMarkers.html .

It's unclear what advantage this offers as opposed to simply not altering the bucket index at all. Adding delete-markers increases the size of the bucket index, a distinct disadvantage. We're aware that some users of RGW have hundreds of thousands of consecutive delete-markers, likely due to tooling that issues deletes ("just in case"?).

Q: Can anyone come up with an advantage to this way of handling delete-markers?

If the user of a bucket is willing to clean up older versions using lifecycle, then these "redundant" delete-markers will be cleaned up as part of the process (. But otherwise Ceph RGW does not currently offer any tooling to do so.

External scripting could be created to handle the clean-up (e.g., see: https://wasabi-support.zendesk.com/hc/en-us/articles/360060003551-How-do-I-mass-delete-Delete-Markers-inside-a-bucket-).

So should Ceph RGW offer a configurable option so as not to create these "redundant" delete-markers? And if so, which default behavior should Ceph RGW exhibit.

Secondarily, other than external scripting, should Ceph RGW offer any support for this? `radosgw-admin bucket check --fix...` does clean up bucket indices, but should it handle a situation such as this as well?


Related issues 1 (0 open1 closed)

Related to rgw - Bug #40393: Lifecycle expiration action generates delete marker continuouslyResolved

Actions
Actions

Also available in: Atom PDF