Skip to content

quincy: rgw: make incomplete multipart upload part of bucket check efficient#57244

Closed
ivancich wants to merge 2 commits intoceph:quincyfrom
ivancich:quincy-optimize-bucket-check-mulitparts
Closed

quincy: rgw: make incomplete multipart upload part of bucket check efficient#57244
ivancich wants to merge 2 commits intoceph:quincyfrom
ivancich:quincy-optimize-bucket-check-mulitparts

Conversation

@ivancich
Copy link
Member

@ivancich ivancich commented May 2, 2024

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
  • 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

ivancich added 2 commits May 2, 2024 11:22
Previously the incomplete multipart portion of bucket check would list
all entries in the _multipart_ namespace across all shards and then
analyze them in memory before taking further action.

Since all index entries for a given multipart upload are all on the
same shard by design, we can work on this asynchronously shard by
shard. Furthermore since all entries for a given multipart upload are
sequential in the bucket index, we can use a small window to analyze
each of the uploads.

This should make the operation quicker and use much less memory in the
worst cases.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>

(cherry picked from commit ebe9893)

    Conflicts:
        src/rgw/driver/rados/rgw_bucket.{cc,h}
            - located in src/rgw
	    - small adjustments due to zipper progress
…m bi

As one of the steps in `radosgw-admin bucket check --fix ...` it looks
for bucket index entries for incomplete multipart uploads that do not
have a corresponding ".meta" entry in the same bucket index. It then
intends to delete those entries, however the function that it calls
to perform the bucket index deletions was flawed and did not direct
the removals to the appropriate shard(s), but instead a non-existant
oid.

This commit determines the appropriate shard for each of the entries
to be removed and asynchronously issues a librados call to
omap_rm_keys.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 0521c2a)

    Conflicts:
        src/rgw/driver/rados/rgw_rados.cc
            - remove bitx debugging
@ivancich ivancich requested a review from mkogan1 May 2, 2024 15:34
@github-actions github-actions bot added this to the quincy milestone May 2, 2024
@ivancich ivancich changed the title rgw: quincy: optimize bucket check mulitparts quincy: rgw: optimize bucket check mulitparts May 2, 2024
@ivancich ivancich changed the title quincy: rgw: optimize bucket check mulitparts quincy: rgw: make incomplete multipart upload part of bucket check efficient May 2, 2024
@ivancich
Copy link
Member Author

ivancich commented May 3, 2024

Needed to include one commit from #46030 .

@ivancich
Copy link
Member Author

ivancich commented May 3, 2024

jenkins test api

@ivancich
Copy link
Member Author

ivancich commented May 3, 2024

jenkins test make check

@adamemerson adamemerson removed this from the quincy milestone Aug 6, 2024
@adamemerson adamemerson marked this pull request as draft August 6, 2024 20:59
@adamemerson
Copy link
Contributor

Making this a draft and removing the Quincy milestone, re-add if appropriate.

@github-actions
Copy link

github-actions bot commented Oct 5, 2024

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 Oct 5, 2024
@github-actions
Copy link

github-actions bot commented Nov 4, 2024

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions bot closed this Nov 4, 2024
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.

2 participants