-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Acquire a per-lock lease to make renew and revoke atomic wrt each other. #11122
Conversation
This means we don't have to hold pendingLock during I/O.
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.
Approving, but did you ever get to the bottom of the potential deadlock you were seeing in tests?
Yes, 1704a8d fixes it. |
@sgmiller @swayne275 could one of you resolve the conflicts and merge this PR, since it seems like something we want, and Mark can't merge it? |
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.
looks good, just a few questions
Co-authored-by: swayne275 <swayne275@gmail.com>
Co-authored-by: swayne275 <swayne275@gmail.com>
…hicorp/vault into expiration_per_lease_locking
…er. (#11122) * Acquire a per-lock lease to make renew and revoke atomic wrt each other. This means we don't have to hold pendingLock during I/O. * Attempted fix for deadlock in token revocation. * Comment fix. * Fix error checking in loadEntry. * Add benchmark * Add a few additional locking locations * Improve benchmark slightly * Update vault/expiration.go Co-authored-by: swayne275 <swayne275@gmail.com> * Update vault/expiration.go Co-authored-by: swayne275 <swayne275@gmail.com> * Add a lease lock into tidy Co-authored-by: Scott Miller <smiller@hashicorp.com> Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com> Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com> Co-authored-by: swayne275 <swayne275@gmail.com>
…er. (#11122) (#11808) * Acquire a per-lock lease to make renew and revoke atomic wrt each other. This means we don't have to hold pendingLock during I/O. * Attempted fix for deadlock in token revocation. * Comment fix. * Fix error checking in loadEntry. * Add benchmark * Add a few additional locking locations * Improve benchmark slightly * Update vault/expiration.go Co-authored-by: swayne275 <swayne275@gmail.com> * Update vault/expiration.go Co-authored-by: swayne275 <swayne275@gmail.com> * Add a lease lock into tidy Co-authored-by: Scott Miller <smiller@hashicorp.com> Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com> Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com> Co-authored-by: swayne275 <swayne275@gmail.com> Co-authored-by: Mark Gritter <mgritter@hashicorp.com> Co-authored-by: Scott Miller <smiller@hashicorp.com> Co-authored-by: swayne275 <swayne275@gmail.com>
This means we don't have to hold pendingLock during I/O.