Skip to content

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

Merged
yuriw merged 2 commits into
ceph:quincyfrom
ivancich:wip-65891-quincy
Aug 6, 2024
Merged

yuriw merged 2 commits into
ceph:quincyfrom
ivancich:wip-65891-quincy

Conversation

@ivancich

Copy link
Copy Markdown
Member

ivancich added 2 commits May 10, 2024 12:39
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 <[email protected]>

(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 <[email protected]>
(cherry picked from commit 0521c2a)

    Conflicts:
        src/rgw/driver/rados/rgw_rados.cc
            - remove bitx debugging
@ivancich ivancich added this to the quincy milestone May 10, 2024
@ivancich ivancich added the rgw label May 10, 2024
@ivancich
ivancich requested review from cbodley and mkogan1 May 10, 2024 16:42
@ivancich

Copy link
Copy Markdown
Member Author

After multiple tries I was unable to get a clean build on shaman, so I'm going to drop my QA attempt and let this be done through the standard process.

@ivancich ivancich removed the wip-eric-testing-1 for ivancich testing label May 20, 2024
@cbodley

cbodley commented May 20, 2024

Copy link
Copy Markdown
Contributor

After multiple tries I was unable to get a clean build on shaman, so I'm going to drop my QA attempt and let this be done through the standard process.

thanks @ivancich. it looks like the centos 9 builds are failing because they're running some new ceph-container logic that they shouldn't be

@yuriw
yuriw merged commit 02959df into ceph:quincy Aug 6, 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.

4 participants