Skip to content

rgw: ContinuousLeaseCR uses LOCK_FLAG_MUST_RENEW to detect timeouts and racing lockers - #47809

Closed
cbodley wants to merge 4 commits into
ceph:mainfrom
cbodley:wip-rgw-lock-cr
Closed

cbodley wants to merge 4 commits into
ceph:mainfrom
cbodley:wip-rgw-lock-cr

Conversation

@cbodley

@cbodley cbodley commented Aug 25, 2022 •

Copy link
Copy Markdown
Contributor

allow SimpleRadosLock/UnlockCRs to take rados::cls::lock::Lock directly, so that callers like ContinuousLeaseCR can override set_may_renew()/set_must_renew(). ContinuousLeaseCR uses set_must_renew() to raise EBUSY errors if a renewal request is processed after expiration

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

@github-actions github-actions Bot added the rgw label Aug 25, 2022
@yuvalif

yuvalif commented Aug 25, 2022

Copy link
Copy Markdown
Contributor

can you please provide an example of usage for the new ctor (rgw_sync.cc or rgw_data_sync.cc)?

@cbodley

cbodley commented Aug 25, 2022

Copy link
Copy Markdown
Contributor Author

added a commit that starts on RGWContinuousLeaseCR integration. it's not complete but should be useful as an example

@yuvalif
yuvalif self-requested a review August 27, 2022 10:59
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

this allows the caller to override the default set_may_renew(true)

Signed-off-by: Casey Bodley <[email protected]>
@cbodley cbodley changed the title rgw: RGWSimpleRadosLockCR can take cls Lock directly rgw: ContinuousLeaseCR uses LOCK_FLAG_MUST_RENEW to detect timeouts and racing lockers Sep 15, 2022
@cbodley
cbodley marked this pull request as ready for review September 15, 2022 16:33
@cbodley
cbodley requested a review from ofriedma September 15, 2022 16:37
turns late lock renewals into EBUSY errors, and moves the warning
message into that error case

Signed-off-by: Casey Bodley <[email protected]>
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@yuvalif

yuvalif commented Dec 8, 2022

Copy link
Copy Markdown
Contributor

@cbodley should this PR go into PR #48898 ?

@cbodley

cbodley commented Dec 8, 2022

Copy link
Copy Markdown
Contributor Author

i was planning to revisit this one after multisite stabilization and sync fairness

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label May 26, 2023
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Jun 25, 2023
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