Repository navigation
rgw/bucket-logging: fix stale shadow log objects - #71616
Conversation
5e6e0c7 to
38f3634
Compare
38f3634 to
560874d
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@nbalacha how is this fix addressign the issue? if the rollover happens inside |
With this fix, the log_record gets the updated conf from s->bucket, so the new REST.PUT.LOGGING entry goes into the log record for the new target bucket. |
this is on a target change. the descriptions speaks about disabling bucket logging |
As the Standard log mode logs only on completion of the op, the REST.PUT.LOGGING is not logged as it finds the logging config attr is not present. |
do we need to update release notes? or what it never logged into an accessible location? |
This fix addresses an issue where disabling logging for a bucket generates an uncommitted shadow log record object that lacks a corresponding head object. While this object logs the REST.PUT.LOGGING operation, it cannot be accessed via object listings. The issue occurs because RGWPutBucketLogging executes RGWBucket::merge_and_store_attrs() on its local src_bucket instance. Because this function only updates the specific bucket instance it is called on, the logging configuration stored in s->bucket remains stale. Consequently, log_record() uses the outdated configuration and writes to an incorrect log object, which is never committed. Fixes: https://tracker.ceph.com/issues/80362 Signed-off-by: Nithya Balachandran <[email protected]>
560874d to
da4b470
Compare
|
jenkins test windows |
|
Note to self : passed s3tests (bucket-logging) and bucket-logging.py on my local machine. |
|
This PR has been added to main integration testing by anuchaithra started 2026-10-06-07:38. |
pr testing completed and approved by @ivancich, more details in : https://tracker.ceph.com/issues/81453. |
Resolves an issue where disabling logging on a bucket creates a shadow log record object without an associated head object. Although this object records the REST.PUT.LOGGING operation, it remains inaccessible through object listings.
Fixes: https://tracker.ceph.com/issues/80362
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.