Skip to content

rgw/bucket-logging: fix src bucket cleanup - #70437

Merged
nbalacha merged 1 commit into
ceph:mainfrom
nbalacha:wip-nbalacha-78545
Nov 13, 2026
Merged

nbalacha merged 1 commit into
ceph:mainfrom
nbalacha:wip-nbalacha-78545

Conversation

@nbalacha

@nbalacha nbalacha commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

During the deletion of a source bucket, the bucket logging cleanup routine removes the source bucket from the RGW_ATTR_BUCKET_LOGGING_SOURCES attribute. However, a log record for the bucket deletion operation is written after this cleanup process has already been executed.
As a result, the log_record function erroneously re-adds the source bucket to the RGW_ATTR_BUCKET_LOGGING_SOURCES attribute.

Fixes: https://tracker.ceph.com/issues/78545

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

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@nbalacha
nbalacha requested a review from a team as a code owner July 22, 2026 11:39
@github-actions github-actions Bot added the rgw label Jul 22, 2026
@nbalacha

Copy link
Copy Markdown
Contributor Author

Pending: s3tests bucket logging cleanup test fixes

@nbalacha
nbalacha marked this pull request as draft July 22, 2026 11:40
@nbalacha
nbalacha requested a review from yuvalif July 22, 2026 11:40
Comment thread src/rgw/rgw_bucket_logging.cc Resolved
@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

would be great to get test coverage for that case. could be added to the bucket-logging test suite or to s3tests

@github-actions

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Sep 20, 2026
@yuvalif

yuvalif commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

unstale please.
@nbalacha do you plan on moving ahead with this fix?

@github-actions github-actions Bot removed the stale label Sep 22, 2026
@nbalacha

Copy link
Copy Markdown
Contributor Author

Yes. I will be working on this.

@nbalacha
nbalacha marked this pull request as ready for review October 5, 2026 11:51
@nbalacha
nbalacha force-pushed the wip-nbalacha-78545 branch from 024eadb to 9c72f6d Compare October 5, 2026 11:51
@github-actions github-actions Bot added the tests label Oct 5, 2026
Comment thread src/rgw/rgw_bucket_logging.cc Resolved
@nbalacha
nbalacha force-pushed the wip-nbalacha-78545 branch 2 times, most recently from 88b8818 to fedba61 Compare October 6, 2026 12:40
@yuvalif
yuvalif self-requested a review October 6, 2026 12:56
@anrao19

anrao19 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-10-08-10:48.

@ivancich

ivancich commented Oct 9, 2026

Copy link
Copy Markdown
Member

QA found two distinct errors during bucket logging testing:

Here's the full QA run: https://pulpito.ceph.com/?branch=wip-anuchaithra-testing-20261008.104741-main

I'm removing the needs-qa label so you have a chance to address this, @nbalacha .

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

During the deletion of a source bucket, the bucket logging cleanup routine
removes the source bucket from the RGW_ATTR_BUCKET_LOGGING_SOURCES attribute.
However, a log record for the bucket deletion operation is written after this
cleanup process has already been executed.
As a result, the log_record function erroneously re-adds the source bucket
to the RGW_ATTR_BUCKET_LOGGING_SOURCES attribute.

Fixes: https://tracker.ceph.com/issues/78545

Signed-off-by: Nithya Balachandran <[email protected]>
@nbalacha

Copy link
Copy Markdown
Contributor Author

This PR has been added to main integration testing by anuchaithra started 2026-10-08-10:48.

Fixed.

@nbalacha
nbalacha requested a review from yuvalif October 19, 2026 08:54
@anrao19

anrao19 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao10-testing-2026-11-02-0708-main.

@anrao19

anrao19 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao10-testing-2026-11-02-0708-main.

pr testing completed and approved by @ivancich, more deatils in : https://tracker.ceph.com/issues/82524.
@nbalacha, if no further testing is needed then this can be merged

@nbalacha
nbalacha merged commit d7bef1b into ceph:main Nov 13, 2026
18 of 19 checks passed
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/43386741361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants