mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
[VAULT-21623] Close rate-limit client purge goroutines when sealing (#24108)
* close purge goroutines when sealing * add changelog
This commit is contained in:
parent
a0562419ce
commit
0ab8cfdff6
2 changed files with 10 additions and 0 deletions
3
changelog/24108.txt
Normal file
3
changelog/24108.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
core/quotas: Close rate-limit blocked client purge goroutines when sealing
|
||||
```
|
||||
|
|
@ -865,6 +865,13 @@ func (m *Manager) resetCache() error {
|
|||
}
|
||||
if quota != nil {
|
||||
rlq := quota.(*RateLimitQuota)
|
||||
|
||||
// Cancel the quota's purgeBlockedClients goroutine
|
||||
err = rlq.close(context.Background())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = rlq.store.Close(context.Background())
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue