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

Backport 1.8.x: Acquire a per-lock lease to make renew and revoke atomic wrt each oth… #11808

Merged
merged 1 commit into from Jun 10, 2021

Conversation

briankassouf
Copy link
Member

@briankassouf briankassouf commented Jun 10, 2021

…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

  • Update vault/expiration.go

  • Add a lease lock into tidy

…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>
@briankassouf briankassouf added this to the 1.8 milestone Jun 10, 2021
@briankassouf briankassouf merged commit 0a60b23 into release/1.8.x Jun 10, 2021
@briankassouf briankassouf deleted the backport-1.8.x-11122 branch June 10, 2021 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants