New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgwlc: permit lifecycle processing for a single bucket #44139
Conversation
Permit a --bucket option to be passed to radosgw-admin lc process, and propagate the bucket name to lifecycle processing, and process only the named bucket if one is provided. Fixes: https://tracker.ceph.com/issues/53430 Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8fb3a3d
to
9ddc223
Compare
jenkins retest this please |
it doesn't make sense to search all lc partitions for the bucket, let's see if we can fix that... |
Feel free to modify zipper APIs if necessary. I did the minimum necessary to make it work, and they may not be optimal. |
8aa1127
to
d1c24fc
Compare
d1c24fc
to
d89fb97
Compare
if (ret < 0) | ||
return 0; | ||
|
||
if (! (cct->_conf->rgw_lc_lock_max_time == 9969)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this check accomplish? it's not clear where 9969 comes from. there's also a local variable max_lock_secs
that stores the value of this config option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is debugging magic, try to ignore
d89fb97
to
25f508c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f9cb1cd
to
7bb0215
Compare
oops, forgot to constify the unique_ptr |
Looks up the shard index of the corresponding bucket, and only buckets in the corresponding shard are considered for processing. This has a side effect of matching buckets by id, and also adds support for --tenant. Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
86b2f64
to
af11694
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just don't forget to remove the (cct->_conf->rgw_lc_lock_max_time == 9969)
bit
Permit a --bucket option to be passed to radosgw-admin lc process,
and propagate the bucket name to lifecycle processing, and process
only the named bucket if one is provided.
Fixes: https://tracker.ceph.com/issues/53430
Signed-off-by: Matt Benjamin mbenjamin@redhat.com
Checklist
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