Skip to content
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

rgw: Ensure buckets too old to decode a layout have layout logs #43778

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

adamemerson
Copy link
Contributor

@adamemerson adamemerson commented Nov 2, 2021

When decoding RGWBucketInfo data from before Pacific, we won't call
rgw::BucketLayout::decode, but will instead synthesize the layout
information. This leaves the rgw::BucketLayout::logs empty, as the
fallback to populate it only applies to old versions of
rgw::BucketLayout.

Add a check at the end of RGWBUcketInfo::decode to populate it if
empty.

Checklist

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

Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

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

even better than last time! thanks

@adamemerson
Copy link
Contributor Author

Jenkins, retest this please.

@adamemerson
Copy link
Contributor Author

@cbodley I think this looks reasonable, the failures appear to be pubsub related.

https://pulpito.ceph.com/aemerson-2021-11-02_23:30:11-rgw-wip-53132-distro-basic-smithi/

@cbodley
Copy link
Contributor

cbodley commented Nov 3, 2021

jenkins test make check

@cbodley
Copy link
Contributor

cbodley commented Nov 3, 2021

looks great @adamemerson, this can merge once jenkins is happy

@adamemerson
Copy link
Contributor Author

Jenkins test make check

@cbodley
Copy link
Contributor

cbodley commented Nov 3, 2021

dangit jenkins!

@cbodley
Copy link
Contributor

cbodley commented Nov 3, 2021

jenkins test make check

When decoding `RGWBucketInfo` data from before Pacific, we won't call
`rgw::BucketLayout::decode`, but will instead synthesize the layout
information. This leaves the `rgw::BucketLayout::logs` empty, as the
fallback to populate it only applies to old versions of
`rgw::BucketLayout`.

Add a check at the end of `RGWBUcketInfo::decode` to populate it if
empty.

Fixes: https://tracker.ceph.com/issues/53132
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
@adamemerson
Copy link
Contributor Author

Jenkins run api test

@adamemerson
Copy link
Contributor Author

jenkins test api

1 similar comment
@cbodley
Copy link
Contributor

cbodley commented Nov 4, 2021

jenkins test api

@cbodley cbodley merged commit cc83987 into ceph:master Nov 4, 2021
@adamemerson adamemerson deleted the wip-53132 branch September 15, 2022 21:50
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