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: disable RGWDataChangesLog::add_entry() when log_data is off #51734

Merged
merged 1 commit into from
May 25, 2023

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented May 24, 2023

this re-cherry-picks the commit from #45357 which fixed https://tracker.ceph.com/issues/54531

that change was reverted during the multisite reshard project in 6f83f07

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

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

this restores a check for RGWZone::log_data in add_entry(). with
per-bucket replication, this check was replaced by a call to
`RGWBucketSyncPolicyHandler::bucket_exports_data()`

this call has to consult two rados objects,
`bucket.sync-source-hints.<bucketname>` and
`bucket.sync-target-hints.<bucketname>`

but if the zone is not configured for multisite, we should avoid these
extra object reads and return early

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

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley cbodley requested a review from a team as a code owner May 24, 2023 18:51
@cbodley
Copy link
Contributor Author

cbodley commented May 25, 2023

jenkins test make check

1 similar comment
@cbodley
Copy link
Contributor Author

cbodley commented May 25, 2023

jenkins test make check

@cbodley
Copy link
Contributor Author

cbodley commented May 25, 2023

@cbodley
Copy link
Contributor Author

cbodley commented May 25, 2023

jenkins test make check

1 similar comment
@cbodley
Copy link
Contributor Author

cbodley commented May 25, 2023

jenkins test make check

@cbodley cbodley merged commit e05a42f into ceph:main May 25, 2023
10 of 12 checks passed
@cbodley cbodley deleted the wip-61300 branch May 25, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants