Skip to content

rgw: RGWBucket uses creation_time from RGWBucketInfo - #36743

Merged
dang merged 1 commit into
ceph:masterfrom
cbodley:wip-rgw-sal-bucket-ctime
Sep 2, 2020
Merged

dang merged 1 commit into
ceph:masterfrom
cbodley:wip-rgw-sal-bucket-ctime

Conversation

@cbodley

@cbodley cbodley commented Aug 20, 2020

Copy link
Copy Markdown
Contributor

RGWRadosBucket::get_creation_time() is uninitialized when returned by RGWRadosStore::create_bucket(). RGWCreateBucket passes this timestamp to link_bucket(), which will generate a new creation time if an empty one is given

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

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@cbodley

cbodley commented Aug 20, 2020

Copy link
Copy Markdown
Contributor Author

i'm sure not this fix is right in general, but in the create_bucket() case only the info is initialized

@dang dang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a strong opinion as to whether we use creation_time from ent or from info; however, if we switch to info, you'll have to change the setting in RGWRadosBucket::update_container_stats() as well to set the info creation_time.

The alternative is to always set both.

RGWRadosBucket::get_creation_time() is uninitialized when returned by
RGWRadosStore::create_bucket(). RGWCreateBucket passes this timestamp to
link_bucket(), which will generate a new creation time if an empty one
is given

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

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley force-pushed the wip-rgw-sal-bucket-ctime branch from 4b1a20d to 2c39bf9 Compare August 21, 2020 17:05
@cbodley

cbodley commented Aug 21, 2020

Copy link
Copy Markdown
Contributor Author

thanks @dang, updated RGWRadosBucket::update_container_stats() accordingly

@adamemerson adamemerson added the wip-aemerson-testing Testing by adamemerson label Aug 28, 2020
@adamemerson adamemerson self-assigned this Aug 28, 2020
@adamemerson

Copy link
Copy Markdown
Contributor

Wait, sorry, this isn't the one I was QAing, that was bucket sync checkpoint. Unassigning myself.

@adamemerson adamemerson removed the wip-aemerson-testing Testing by adamemerson label Aug 28, 2020
@adamemerson adamemerson removed their assignment Aug 28, 2020
@adamemerson adamemerson added the wip-aemerson-testing Testing by adamemerson label Aug 31, 2020
@adamemerson adamemerson removed needs-qa wip-aemerson-testing Testing by adamemerson labels Sep 2, 2020
@dang
dang merged commit 46b4e9b into ceph:master Sep 2, 2020
@cbodley

cbodley commented Sep 2, 2020

Copy link
Copy Markdown
Contributor Author

thanks @adamemerson!

@cbodley
cbodley deleted the wip-rgw-sal-bucket-ctime branch September 2, 2020 12:39
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.

3 participants