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 of VAULT-8630 Fix goroutine leak from RLQ initialize into release/1.11.x #17286

Conversation

hc-github-team-secure-vault-core
Copy link
Contributor

Backport

This PR is auto-generated from #17281 to be assessed for backporting due to the inclusion of the label backport/1.11.x.

The below text is copied from the body of the original PR.


We current have a goroutine leak since as part of creating RLQs, we create a goroutine as part of memorystore.New - however, as part of Reset, we don’t actually call Close on it. As a result, upon seal/unseal, a lot of these goroutines get stranded.

This could cause an issue with a combination of high leadership changes and high quotas.

I tested this manually and this definitely fixes things. Adding a non-manual test doesn't seem particularly easy/possible due to our existing leaks.


Overview of commits

@VioletHynes VioletHynes enabled auto-merge (squash) September 22, 2022 20:01
@VioletHynes VioletHynes merged commit e55f85c into release/1.11.x Sep 22, 2022
@jasonodonnell jasonodonnell deleted the backport/violethynes/VAULT-8630/willingly-daring-dog branch September 23, 2022 10: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

2 participants